Text to Slug Converter
Turn titles into clean, SEO-friendly URL slugs: lowercase, hyphens, no accents or special characters. Choose the separator and a maximum length.
Characters
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the Text to Slug Converter
- 1 Type or paste the title of your page, post or product.
- 2 Choose the separator, and optionally a maximum length or to keep capitals.
- 3 Copy the slug and use it in your URL or file name.
About the Text to Slug Converter
A slug is the readable part of a URL that identifies a page, such as "how-to-bake-bread" in example.com/blog/how-to-bake-bread. Good slugs are short, lowercase and contain only letters, numbers and hyphens, which makes them easy to read, share and type, and helps search engines understand what a page is about.
The generator turns any text into such a slug. Accented letters are converted to their plain version (café → cafe, Straße → strasse, Łódź → lodz), apostrophes are removed so "don't" becomes "dont", and every run of spaces, punctuation and symbols becomes a single separator. Separators at the start and end are removed.
Hyphens are the standard for URLs and are what Google recommends; underscores are common in file names and some programming contexts, and dots in some configuration keys. With a maximum length the slug is cut at the last whole word that fits, so it never ends halfway through a word. Letters from non-Latin scripts such as Chinese or Arabic are left out, so give those pages a Latin-script slug.
Frequently asked questions
What is a URL slug?
The slug is the part of a URL after the domain and folders that names the page, such as "text-to-slug" in toolgrid.app/text-to-slug. It is usually generated from the page title.
Should I use hyphens or underscores in URLs?
Use hyphens. Search engines treat a hyphen as a word separator, while an underscore can join words together. Hyphens are also easier to read.
How long should a slug be?
Short and descriptive: three to six words is a good target. Leave out filler words such as "a", "the" and "and" when the slug stays clear without them.
What happens to accents and special characters?
Accents are removed (é → e, ü → u), special letters are spelled out (ß → ss, æ → ae, ø → o), apostrophes disappear and all other symbols become the separator.
Can I change the slug of an existing page?
You can, but set up a 301 redirect from the old URL to the new one, so that visitors and search engines that use the old link still arrive at the right page.