URL Slug Generator
About this tool
About Slug Generator
A slug is the readable part of a URL that identifies a page, like how-to-write-great-urls. Paste one title or a whole list, one per line, and get slugs that are lowercase, free of punctuation and safe in any address bar. Accented letters are transliterated rather than dropped, so Crème Brûlée becomes creme-brulee, and letters without a simple accent such as ß, æ, ø, ł and þ map to ss, ae, o, l and th. Turn on German ä → ae for German-language sites, choose a hyphen, underscore or dot as the separator, and replace symbols with words using the Replace field, which turns & into and by default. Remove stop words to shorten long headlines, and set a maximum length that cuts at a word boundary instead of mid-word. Text in Hindi, Russian, Chinese or other scripts is either dropped with a clear warning or kept as Unicode, your choice. Slugs are generated in your browser as you type.
Built and maintained by Abhi JainUpdated
How to Create a URL Slug
- 1
Paste titles
Paste a title, or several with One per line ticked, or click Sample.
- 2
Set the options
Choose the Separator, a Max length, symbol replacements and whether to Remove stop words or Keep non-Latin letters.
- 3
Copy the slugs
Copy the slugs from the right-hand pane or download them as a text file.
Slug Generator: questions and answers
What makes a good URL slug?
Short, lowercase, words separated by hyphens, and describing the page. Leave out dates and filler words unless they matter, avoid special characters, and keep it stable once the page is published, because changing a slug breaks existing links.
Should I use hyphens or underscores in URLs?
Hyphens. Google treats a hyphen as a word separator but historically joined words around an underscore, and hyphens stay visible when a link is underlined. Underscores are common in file names and some APIs.
Should I remove stop words from slugs?
Often yes for long titles: the-best-way-to-learn-a-language becomes best-way-learn-language. Keep them when removing them changes the meaning or makes the slug unreadable. The tool never removes every word.
How are accents and special letters handled?
Accents are stripped using Unicode decomposition (é → e, ñ → n), and letters that do not decompose are mapped by hand: ß → ss, æ → ae, œ → oe, ø → o, ł → l, đ → d, þ → th. With German ä → ae on, umlauts follow German spelling (ü → ue).
Can URLs contain Hindi, Chinese or Cyrillic letters?
Yes. Modern browsers display them and search engines index them, but they are percent-encoded when copied, which makes links long. Tick Keep non-Latin letters to keep them, or write a Latin transliteration yourself.
Related Tools
- Case ConverterConvert text to camelCase, snake_case, kebab-case, Title Case and 10 more at once.
- URL EncoderPercent-encode and decode URLs and query values with encodeURIComponent, encodeURI or form encoding.
- Whitespace Visualizer & CleanerReveal tabs, NBSP, zero-width characters and mixed line endings, then clean them.
- Regex TesterTest JavaScript regular expressions live with highlighted matches, capture groups, replace preview and plain-English errors.