Slug Generator
Turn a title or any text into a clean, URL-friendly slug, with accents and special characters handled for you.
Paste or type, or drop a file on the box.
Runs in your browser. Nothing you enter is uploaded or stored.
How to use the Slug Generator
- Type or paste a title into the left box. To convert several, put each one on its own line.
- The slug appears on the right as you type.
- Choose a hyphen or an underscore as the separator. Hyphens are the usual choice for web addresses.
- Leave Lowercase ticked unless your system needs capital letters kept.
- Tick “English letters and digits only” if your site cannot handle other alphabets in addresses, then copy the slug.
Questions and answers
- What is a slug?
- A slug is the part of a web address that names a page in readable words, such as “how-to-format-json” in example.com/blog/how-to-format-json. It is usually made from the page title, in lower case, with hyphens in place of spaces and no punctuation.
- Should I use hyphens or underscores?
- Use hyphens for web addresses. Google treats a hyphen as a space between words, but may read words joined by underscores as one long word. Underscores are fine for file names, database keys and other places that search engines do not read.
- What happens to accents and special characters?
- Accents are removed and the letter is kept, so “café” becomes “cafe”. Letters with a usual spelling are written out: “ß” becomes “ss” and “æ” becomes “ae”. An ampersand becomes “and”, apostrophes are dropped so “don’t” becomes “dont”, and all other punctuation turns into the separator.
- Does it work with Arabic, Chinese and other alphabets?
- Yes. By default letters from any alphabet are kept, because modern browsers and search engines handle them in addresses. If your system only accepts plain ASCII, tick “English letters and digits only”; other letters are then removed, so a title written entirely in another alphabet gives an empty slug.
- Is a shorter slug better for SEO?
- A slug should say what the page is about in a few words. Three to five meaningful words is a good target. The tool keeps every word of your title, so remove filler such as “a”, “the” and “of” by hand if the result is long.
- Is my text sent to a server?
- No. Slugs are made in your browser. Nothing you type is uploaded, stored or logged.
Related tools
Word and Character CounterCount words, characters, sentences, lines and reading time as you type or paste. Free and runs in your browser.Case ConverterConvert text between upper, lower, title, sentence, camel, snake and kebab case. Free and runs in your browser.Sort and Dedupe LinesSort lines alphabetically or numerically, remove duplicate lines, and reverse or shuffle a list. Runs in your browser.Whitespace and Line Break RemoverRemove extra spaces, tabs, blank lines and line breaks from text, or trim every line. Free and runs in your browser.JSON FormatterFormat, validate and minify JSON in your browser. Clear error messages, free, and nothing you paste is uploaded.