Text to Slug Generator
Generate URL slugs from titles and headings: removes accents and punctuation, optional stop words and length limit, one slug per line. Free, in your browser.
How to use Text to Slug
- 1Paste one title or phrase per line.
- 2Choose the separator and options such as stop-word removal or a maximum length.
- 3Copy the slugs or download them as a text file.
What makes it better
- Hyphen, underscore, dot or no separator
- Accent transliteration, including ß, æ, ø, đ, ł, œ and þ
- Optional stop-word removal and word-boundary length limit
- Keep letters from other scripts or drop them with a notice
- One slug per line for bulk work
About Text to Slug
Text to Slug turns titles and headings into lowercase, URL-safe slugs such as “my-first-post”. Accents are transliterated, punctuation is dropped, repeated separators collapse, and every line of your input becomes its own slug so you can process a whole list of titles at once.
Common uses
- Create permalinks for blog posts, product pages or documentation.
- Generate file names or IDs from titles without spaces or symbols.
- Clean a spreadsheet column of headings into consistent slugs.
- Shorten long titles to a fixed number of characters for URLs.
Example
Input
The Quick Brown Fox: 10 Tips & Tricks! Crème Brûlée Recipe (Easy)
Result
the-quick-brown-fox-10-tips-tricks creme-brulee-recipe-easy
Good to know
- By default only ASCII letters and digits are kept. Text in scripts such as Hindi, Arabic or Chinese is dropped (with a notice) unless you turn on “Keep Unicode letters”.
- Stop-word removal uses a short English list and keeps the original words if every word would be removed.
- Apostrophes are removed rather than turned into separators, so “don’t” becomes “dont”. Existing hyphens and underscores are treated as word breaks.
Text to Slug FAQ
What is a URL slug?
A slug is the readable last part of a web address, such as “my-first-post” in /blog/my-first-post. It normally contains lowercase letters, digits and hyphens only.
Should I use hyphens or underscores in a slug?
Hyphens are the usual choice for URLs because search engines treat them as word separators. Underscores suit file names and identifiers. This tool lets you pick either.
What happens to accents like é or ü?
With transliteration on, accents are removed (café becomes cafe) and special letters are mapped, for example ß to ss and æ to ae. Turn it off to keep accented letters only if “Keep Unicode letters” is on.
How does the maximum length work?
Slugs are shortened at a word boundary so they never end mid-word. If the very first word is longer than the limit, it is cut at the limit. Zero means no limit.
Can I make slugs for Hindi or Chinese text?
Enable “Keep Unicode letters” to keep those characters in the slug. Otherwise they are removed, and a notice tells you which characters were dropped. The tool does not translate or romanise them.