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.