URL Slug Generator
Turn any text into a clean URL slug — strip accents, choose a separator, set a max length.
hello-world-a-quick-test-of-the-slug-generatorHow to use
- Type or paste your title.
- Pick a separator (- is standard, _ for filenames, . for some URLs).
- Set a max length (0 = no limit).
- Optionally preserve non-Latin characters.
About this tool
ShowHide
Paste a title or a sentence and get back a URL-safe slug. Accented letters are decomposed and their marks stripped, so café becomes cafe, while whitespace and punctuation collapse into the separator you pick — hyphen, underscore or dot — and a length cap trims at a word boundary instead of mid-word. Worth knowing: decomposition only helps letters that have a base form. German ß and Nordic ø carry no accent to remove, so straße comes out as strae and øre as re unless you handle them first. The preserve-Unicode option keeps Korean, Japanese, Chinese and Cyrillic characters intact for native-language URLs, which every modern browser displays correctly and encodes on the wire.
Frequently asked questions
What does 'preserve Unicode' do?
Off (default): non-Latin characters are removed, so '안녕 World' becomes 'world'. On: they're kept and only punctuation / symbols are dropped, giving '안녕-world'.
How is the max length applied?
The slug is truncated at the max length, then the trailing partial word is removed so the slug ends on a clean separator. This avoids URLs that cut a word in half.
Why are accents stripped?
Many browsers and tools URL-encode accents into percent escapes ('café' → 'caf%C3%A9'), which looks ugly. Stripping with NFKD normalization gives a readable ASCII slug.
Is the input stored?
Only in your browser. Slugs are generated locally; nothing is sent anywhere.
Why did straße become strae?
Because stripping accents only works on letters that decompose into a base plus a mark. German ß and Nordic ø carry no accent to remove, so with Unicode preservation off they are dropped entirely rather than transliterated. Replace them first — ß to ss, ø to o — if the slug has to stay readable.
Should I change a slug after publishing?
Only with a redirect in place. The slug is the page's address, so editing it breaks every existing link and hands search engines a new URL with none of the old one's history. If the title changes, leave the slug alone; if it truly must move, redirect the old path permanently to the new one.
Guides on this topic
Related tools
Case Converter
Convert text between UPPER, lower, Title, camelCase, snake_case and more.
Text
Email & URL Extractor
Pull every email address or URL out of a block of text, in your browser.
Text
Social / SEO Character Limit Checker
Type once and see how your text measures against 28+ platform limits — Twitter, Instagram, SEO titles, ad copy, app stores.
Text
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text, instantly.
Developer
Lorem Ipsum Generator
Generate placeholder text by paragraphs, sentences, or words.
Text
Fancy Unicode Text
Type plain ASCII and get 𝐁𝐨𝐥𝐝, 𝐼𝑡𝑎𝑙𝑖𝑐, 𝓢𝓬𝓻𝓲𝓹𝓽, 𝔉𝔯𝔞𝔨𝔱𝔲𝔯, 𝙼𝚘𝚗𝚘 and sans-serif variants from the Unicode Math Alphanumeric blocks.
Text