How to turn a title into a URL slug
- Paste or type your post title, product name or heading into Title or text. The slug updates as you type.
- Pick hyphen or underscore under Word separator.
- Leave Convert to lowercase ticked for a normal web slug. Untick it only if you need the original capitals.
- Check the Slug length counter. Shorter slugs are easier to read and share, so if the number gets high, delete filler words from the input.
- Click Copy slug and paste the result into your CMS's permalink field, a router config or a file name.
To start from a sample, use the buttons under Try an example. They load a blog title, a Polish sentence with diacritics and a string with messy spacing.
Example slugs, before and after
| Input | Settings | Slug |
|---|---|---|
My First Blog Post! |
default | my-first-blog-post |
Straße & Café — 2024 Guide |
default | strasse-cafe-2024-guide |
Zażółć gęślą jaźń |
default | zazolc-gesla-jazn |
10 Tips: How to Use C++ & C#? |
underscore | 10_tips_how_to_use_c_c |
Ærøskøbing Ferry FAQ |
lowercase off | AEroskobing-Ferry-FAQ |
The ampersand and the em dash don't add extra separators. Any run of spaces, punctuation or symbols becomes a single hyphen. Programming names lose their symbols too, so "C++" and "C#" both end up as a plain c. If the difference matters, write the names out in the input first, for example "C plus plus" and "C sharp".
Some letters aren't a base letter with an accent added, so they can't just lose a mark. The tool gives them a fixed ASCII spelling: æ → ae, ø → o, œ → oe, þ → th, ð → d and đ → d. For example, Þór Đakovo Œuvre becomes thor-dakovo-oeuvre. Compatibility characters are expanded as well. The ligature fi in file gives file, and the Roman numeral sign Ⅻ becomes the letters XII (xii with lowercase on).
Where a generated slug is useful
- Blog and CMS permalinks: WordPress, Ghost and most headless CMSs suggest a slug, but they don't all handle non-English letters the same way. Making the slug here gives you a predictable ASCII version to check before you publish. Stop words like "how" and "to" are kept, so remove them by hand if you don't want them.
- Product and category URLs in shops: a name like "Crème brûlée set – 6 pcs" gives
creme-brulee-set-6-pcs, which works in any URL without percent-encoding. - Static site file names: Jekyll, Hugo and Astro often build a post's URL from its file name. An ASCII slug avoids spaces and accented letters, which macOS and Linux can store differently and which show up in the URL as
%20or%C3%A9. - Anchor IDs and keys: section IDs for in-page links, translation keys or fixture names, anywhere you need only
a–z,0–9and one separator.
This tool doesn't split camelCase, so userId becomes userid. If you need user-id or user_id, use the Case converter with kebab-case or snake_case.
What the generator drops and where it stops
The output only ever contains ASCII letters, digits and the separator you chose. Separators at the start or end are trimmed. That has a few consequences:
- Non-Latin scripts are removed, not transliterated. The tool has no ASCII equivalent for Cyrillic, Greek, Arabic, Chinese or Japanese text, so
Привет мирgives no slug at all and日本語 title 🚀gives justtitle. For those languages, write a Latin version of the title first, or keep the native script and encode it with the URL encoder. - Emoji and symbols are removed completely, with no placeholder word.
- Line breaks count as separators. A pasted multi-line list becomes one long slug, not one slug per line.
- Length isn't capped. The counter shows the length, but the tool never cuts the slug short, so shortening is up to you. The input box takes up to 100,000 characters.
- Turkish dotted and dotless i lose their difference: İ → I and ı → i, so with lowercase on,
İstanbul ıspanakgivesistanbul-ispanak. For why Turkish case mapping is unusual, see Why uppercase isn't a letter swap.
If you only want to strip diacritics and keep spaces, punctuation and capitals, use Remove accents instead.