Slugify Text

Turn any text into a clean, URL-safe slug.

Turn any text into a clean, URL-safe slug — lowercase, accents stripped, punctuation removed and words joined by your chosen separator. Convert many lines at once and copy the result, all in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What is a slug?

A slug is the URL-friendly form of a title — lowercase, with spaces and punctuation replaced by a separator (usually a hyphen). For example, "Hello World!" becomes "hello-world". Slugs make readable, SEO-friendly page URLs and IDs.

Turn text into a URL-safe slug

A slug is the clean, lowercase, hyphenated version of a title used in page URLs and IDs — for example hello-world-2025-edition. This tool converts any text into a slug, and can process a whole list at once (one item per line).

What the slugifier does

1. Unicode-normalise and strip accents:  Café → Cafe
2. Replace "&" with "and"
3. Replace every run of non-alphanumeric characters with the separator
4. Lowercase (optional) and trim leading/trailing separators
5. Optionally truncate to a maximum length, without a trailing separator

So Hello World! Café Crème — 2025 Edition becomes hello-world-cafe-creme-2025-edition.

Options

  • Separator — hyphen (the web standard), underscore, dot, or none.
  • Lowercase — on by default; turn off to preserve case.
  • Max length — cap the slug length and trim any trailing separator cleanly.

Common uses

  • Generating readable, SEO-friendly URLs from post or product titles.
  • Creating safe file names and identifiers from arbitrary text.
  • Batch-converting a list of titles into slugs for a CMS import.

Everything runs locally in your browser — your text is never uploaded.