URL Slug Generator (Slugify)
Developer ToolsTurn a title into a clean URL slug, or a list of titles into slugs, as you type.
Processed in your browser. A copy of each run is saved to your past runs so you can reopen it. Privacy
About
What the URL Slug Generator does
The URL Slug Generator turns titles into short, readable URL slugs as you type: lowercase, words joined by hyphens or underscores, punctuation removed, and accented and Greek or Cyrillic letters transliterated, so Café becomes cafe and Straße strasse. It can drop small words such as the and of, cut to a maximum length at a word boundary, and process one title per line.
Steps
How to use it
- 1Type or paste a title, or several titles one per line with One title per line on.
- 2Choose the separator, length limit and whether to drop small words.
- 3Copy the slug into your CMS, router or file name.
Example
A real run
Input
10 Tips for Café Owners — 2026 Edition!
Output
10-tips-for-cafe-owners-2026-edition
Punctuation and the em dash disappear, Café is transliterated to cafe, and the words are joined with hyphens in lowercase.
Options
Every setting, and when to use it
- Separator
- Hyphens are the standard for URLs and what Google recommends; underscores suit file names and some programming conventions.
- Drop a, the, of, for…
- Removes common short words to make slugs shorter, so How to Write a Resume becomes how-write-resume. Leave it off when the words matter to meaning.
- Max length and One title per line
- Cuts long slugs at the last whole word under 40, 60 or 80 characters. Bulk mode turns a list of titles into a list of slugs in the same order.
Good to know
Common problems and limits
Up to 1 MB. Latin, Greek and Cyrillic letters are transliterated; titles in other scripts, such as Chinese or Arabic, are kept and percent-encoded with a note.
A slug generator cannot check that a slug is unique on your site; add a suffix when two titles produce the same slug.
To change the case of text without making a slug, use the Case Converter; to encode a whole URL, use the URL Encoder.
Audience
Who uses it
- Bloggers and content teamsCreate clean, consistent URLs for posts and pages before publishing in WordPress, Ghost, Webflow or a headless CMS.
- DevelopersGenerate slugs for routes, database fields, anchors and file names, or check what a slugify function should produce.
- Ecommerce teamsTurn a list of product or category names into URL handles for a bulk import.
FAQ
Frequently asked
What is a URL slug?
The readable part of a URL that identifies a page, usually at the end: in example.com/blog/cafe-owner-tips, the slug is cafe-owner-tips. Good slugs are short, lowercase, use hyphens and describe the page.
Hyphens or underscores: which is better for SEO?
Hyphens. Google's URL guidelines recommend hyphens to separate words because they read as spaces, while underscores join words together. Underscores are fine for file names and code.
Should slugs include stop words or dates?
Drop small words when the slug stays clear without them, and leave out dates unless the date is the point, since a dated slug looks stale and must change if you update the article. Keep the slug stable once published; changing it needs a redirect.
How are accents and other alphabets handled?
Accented Latin letters are transliterated (é to e, ü to ue, ß to ss), and Greek and Cyrillic are spelled out in Latin letters. Scripts without a standard Latin spelling are kept and percent-encoded, which browsers display as the original characters.
How do I slugify text in Python or JavaScript?
Python: the python-slugify package, slugify("Café Owners") gives cafe-owners. JavaScript: @sindresorhus/slugify, which this page uses, or a framework helper such as Django's slugify.
Is my text sent anywhere?
No. Slugs are made in your browser. A copy of each run is saved to your past runs so you can reopen it.
Automation: an MCP tool slugify(text, options) → slug and an n8n node are planned for this tool.