Slug Generator (URL Slugify)
This slug generator turns any title into a clean, SEO-friendly URL slug live as you type. It lowercases the text, converts accented letters to plain ones, strips symbols and joins the words with hyphens, so Café & Restaurant Menu 2026! becomes cafe-restaurant-menu-2026 instantly.
Slug Generator (URL Slugify) tool
How to use it
- Type or paste a title, heading or phrase.
- Pick a hyphen or underscore separator.
- Copy the slug for your URL, filename or ID.
What is a URL slug?
A URL slug is the readable, hyphenated part at the end of a web address that names the page, such as cafe-restaurant-menu-2026. To slugify a title, this tool runs a fixed pipeline over your text.
1. spell out special letters: ß→ss, ł→l, æ→ae, ø→o
2. drop apostrophes, then strip accents: é→e, ñ→n
3. lowercase everything
4. replace each run of non a-z, 0-9 characters with one hyphen
5. trim hyphens from both ends
Numbers survive, emoji vanish, and letters from scripts with no Latin base, such as Cyrillic or Chinese, are removed, so translate those titles first. The result is plain ASCII that never turns into percent codes when the link is shared.
Worked example
Input to slug examples
| You type | URL slug | What happened |
|---|---|---|
| Straße Guide | strasse-guide | ß is spelled out as ss, not dropped |
| Łódź Travel Tips | lodz-travel-tips | ł becomes l and the accents are stripped |
| Don't Panic! | dont-panic | The apostrophe is removed, not turned into a hyphen |
| R&D Report 2026 | r-d-report-2026 | The ampersand acts as a separator; digits survive |
| Café au lait ☕ | cafe-au-lait | é becomes e and the emoji disappears |
| 50% Off Sale | 50-off-sale | The % and the double space collapse into single hyphens |
What makes a good URL slug
A slug is the readable part of a URL after the domain and path, such as cafe-restaurant-menu-2026 at the end of a blog address. A good slug is lowercase, uses hyphens between words, contains no spaces, punctuation or accents, and describes the page in a handful of words. People can read it in a link preview, and it will not break when pasted into an email or a chat.
The tool applies those rules in order. Letters with no accent to strip, such as ß, ø, ł, æ and đ, are spelled out as ss, o, l, ae and d. Accented letters are split into a base letter plus an accent mark and the mark is dropped, so é becomes e and ñ becomes n. Apostrophes are removed, so ‘don't’ becomes dont rather than don-t. Everything is lowercased, every run of characters other than a to z and 0 to 9 is replaced with a single separator, and separators at the start and end are removed. ‘Café & Restaurant Menu 2026!’ therefore comes out as cafe-restaurant-menu-2026.
Hyphens or underscores
Google treats a hyphen as a word separator and an underscore as a joiner, so blue-widgets is read as two words and blue_widgets as one, and its own guidelines recommend hyphens in URLs. Underscores are still the convention for file names in code, Python identifiers and database column names, which is why the option is here. Pick hyphens for anything public-facing.
Edge cases to check
Special Latin letters are transliterated rather than dropped, so ‘Straße’ becomes strasse and ‘Łódź’ becomes lodz. Letters from scripts without a Latin base, such as Cyrillic, Greek, Chinese or Arabic, have no plain equivalent and are removed, so a title in those languages needs a translated slug. An ampersand acts as a separator, so ‘R&D’ turns into r-d. Numbers are kept and emoji vanish. WordPress caps slugs at 200 characters and most SEO advice suggests three to five words, so trim a long title to its key terms.
Common uses
- Creating clean blog and article URLs
- Naming files and folders safely
- Generating IDs and handles from titles
- Building SEO-friendly permalinks
- Making anchor IDs for headings in HTML and Markdown
- Naming image files for better image search
When to use it
- You want an SEO-friendly URL from a blog title before publishing a post.
- A title full of accents or special letters has to convert text to a URL slug that never breaks in a shared link.
- Image files need clean, descriptive names like red-running-shoes.jpg for image search.
- Headings in HTML or Markdown need stable anchor IDs you can link to.
- A CMS generated an ugly permalink and you are writing a better slug by hand.
Related tools
Case Converter changes only capitalization, the right choice when you want readable text back, not a hyphenated slug.
Find and Replace Text handles custom substitutions the slug pipeline does not offer, such as swapping one word before slugifying.
Remove Extra Spaces tidies spacing when you need clean plain text rather than a URL, since the slugifier already ignores extra spaces.