URL Slug Generator
Turn a title into a clean, readable URL slug. Accents are normalized, punctuation is stripped, and spaces become hyphens — with options for every part of the process.
Your text is processed locally in your browser and is not uploaded to our servers.
Slug
What a slug generator does
A slug is the readable part of a URL — the best-free-writing-tools in example.com/blog/best-free-writing-tools. A good slug is lowercase, uses hyphens between words, contains no punctuation or accents, and is short enough to read at a glance. This tool turns any title into one, and it is strict about the rules that keep URLs from breaking.
Because it runs live, you can watch the slug change as you tweak the title, which makes it easy to land on something short and clear.
How to use it
- Type or paste your title. The slug appears immediately in the box below.
- Adjust the options if your platform has its own conventions — some use underscores, some allow longer slugs.
- Set a maximum length to keep long titles from producing unwieldy URLs. The tool trims at a word boundary so a slug never ends mid-word.
- Copy the slug and paste it into your CMS.
How the slug is built
The title passes through a fixed sequence of steps, each controlled by an option:
- Accent normalization decomposes accented letters and drops the marks, so café becomes cafe and naïve becomes naive. A handful of letters that do not decompose — ß, æ, ø, ł and their kin — are mapped by hand to ss, ae, o and l.
- Ampersand handling optionally replaces
&with the word and, so Rock & Roll becomes rock-and-roll rather than losing the symbol entirely. - Lowercasing is applied if enabled, because URLs are case-sensitive on many servers and mixed-case slugs cause duplicate-content headaches.
- Character stripping removes everything that is not a letter, a number or a separator. This is what deletes commas, quotes, colons and emoji.
- Separator collapsing converts runs of spaces, hyphens and underscores into a single separator, and trims separators from the two ends.
- Length capping trims to your maximum at the last whole word, then removes any trailing separator.
Letters from non-Latin scripts — Korean, Arabic, Cyrillic — are kept when Remove characters that are not letters or numbers is off, because they are valid in modern URLs. Turn that option on and only ASCII letters and digits survive, which is the safest choice for maximum compatibility.
Examples
| Title | Slug |
|---|---|
| Best Free Writing Tools | best-free-writing-tools |
| 10 Café Tips You'll Love! | 10-cafe-tips-youll-love |
| Rock & Roll: A History | rock-and-roll-a-history |
| What's New in v2.0? | whats-new-in-v2-0 |
| Trailing Spaces | trailing-spaces |
Notice that the apostrophe in you'll is removed rather than replaced with a hyphen, so the slug reads youll and not you-ll. Punctuation is deleted; only spaces and existing separators become hyphens.
Common use cases
- Blog post URLs. Generate the permalink from the headline before you publish.
- Product page addresses. Build a consistent slug from a product name.
- Documentation anchors. Create heading IDs that match your section titles.
- File names. A slug makes a safe, lowercase, space-free file name.
- API keys and identifiers that need to be human-readable but URL-safe.
- Category and tag URLs generated in bulk from a list of names.
Privacy and security
Slugs are generated in your browser. Unpublished titles and internal product names never leave your device, so there is no risk of a draft URL appearing in someone else's logs.
Your option choices are stored locally so the tool matches your platform's conventions each visit. See the privacy policy for details.
Frequently asked questions
Should I use hyphens or underscores in a URL?
Hyphens. Search engines treat a hyphen as a word separator, so writing-tools is read as two words, while writing_tools can be read as one. Underscores are common in file names and code, but for public URLs hyphens are the safer default.
How long should a slug be?
Short enough to read and remember — usually three to six words. There is no hard technical limit, but long slugs get truncated in search results and are harder to share. The default cap of 60 characters is a reasonable ceiling.
What happens to accented and non-English characters?
With the default settings, accented Latin letters are converted to their base form (é to e) and other scripts are removed. Turn off Remove characters that are not letters or numbers to keep Korean, Cyrillic or Arabic letters, which modern browsers and servers handle correctly.
Why was my apostrophe deleted instead of becoming a hyphen?
Punctuation is removed rather than replaced, so you'll becomes youll. Only spaces and existing separators turn into hyphens. This avoids ugly slugs like you-ll.
Can I generate slugs for a whole list at once?
This tool works on one title at a time so it can show the live preview and stats. For a batch, run each line through and copy the results, or combine the Case Converter and Find and Replace tools for a bulk workflow.
Related tools
Tools that pair well with the Slug Generator.