Free exact browser converter
Slug Generator
Turn a title into a lowercase URL slug. Remove combining accents, choose Unicode or ASCII letters, and collapse separators into hyphens.
Interactive tool
Slug Generator
Ready
Choose a clear output representation.
Detailed conversion guide
How Slug Generator Works
The generator decomposes Unicode text, removes combining accent marks, lowercases it and replaces runs of separators with one hyphen. Leading and trailing hyphens are removed.
Unicode mode retains letters and numbers from non-Latin scripts. ASCII mode retains only a-z and 0-9, so it cannot transliterate a Chinese or Arabic title into readable Latin words.
| Input | Output | Meaning |
|---|---|---|
Crème brûlée & café | creme-brulee-cafe | Default example |
你好 World | 你好-world | Boundary example |
JavaScript Example
Runnable example for the default sample. The tool also validates its full input contract.
const slug = input.normalize("NFKD").replace(/\p{M}/gu,"").toLowerCase()
.replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"");Formats, Boundaries and Limitations
Slug generation is lossy and different titles can produce the same slug. Confirm uniqueness in your own route database before publishing.
This tool creates the slug component only. It does not register a domain, create a page or percent-encode a complete URL.
Related converters
More Text and Encoding Tools
Choose the tool that matches your text or byte workflow.