Slug generator
Type a title to get a lower-case, hyphenated URL slug you can copy. Nothing leaves your browser.
The text stays in this page. It is not sent anywhere.
For example example.com or example.com/blog.
Type a title to get a slug. With nothing typed the slug would be "untitled".
What this tool does
Type a post title and the tool turns it into a slug, the readable last part of a page address. You can set the longest slug you want (60 characters unless you change it), drop small words, type your domain to see the full address and copy the result. It runs in your browser, so your title is not sent anywhere.
The steps, in order
- Letters lose their accents, so "café" becomes "cafe". Look-alike letters are written out: "ß" becomes "ss", "ø" becomes "o", "æ" becomes "ae". Full-width Latin letters and ligatures such as "fi" are turned into plain letters.
- The text is lower-cased. Google notes that URLs are case sensitive, so one lower-case form avoids two addresses for the same page.
- Every run of characters that are not letters or digits becomes a single hyphen, so a comma, a space and a dash together make one hyphen. Hyphens at either end are removed.
- If you tick the small-words option, these are removed: a, an, the, of, and, or, to, in, for, on, with. The tool never removes so many that fewer than two words are left.
- The slug is cut to your longest length at a hyphen, never in the middle of a word. The one exception is a first word that is longer than the limit by itself, which has to be cut, and the tool tells you when that happens.
- If nothing is left, the slug is "untitled".
Titles in other scripts
The tool cannot turn Chinese, Arabic, Cyrillic or other non-Latin writing into Latin letters, because that needs a language-specific transliteration it does not carry. By default it drops those letters and warns you that the slug is lossy. Tick the option to keep letters from other scripts and they stay in the slug, written as percent-encoded UTF-8, which is how a browser sends them in an address.
Google's guidance on URL structure agrees with the shape this tool produces: use readable words rather than long ID numbers, separate words with hyphens and not underscores, write words in your audience's language (transliterated if you need to), and percent-encode characters outside ASCII as UTF-8.
Worked example
Café München: 10 Tips for the Best Coffee, Straight from the Roaster!| Setting | Slug |
|---|---|
| Default (longest 60) | cafe-munchen-10-tips-for-the-best-coffee-straight-from-the |
| Small words dropped | cafe-munchen-10-tips-best-coffee-straight-from-roaster |
| Longest 24 characters | cafe-munchen-10-tips-for |
The accents went, the colon and the comma became hyphens, and the exclamation mark at the end was dropped. The 24-character version ends on "for" because the next word would take it to 28 characters, so it stops on a whole word. The title "!!!" has no letters or digits at all, so its slug is "untitled".
| Title | Mode | Slug |
|---|---|---|
| 东京 travel guide | Default | travel-guide (lossy: yes) |
| 东京 travel guide | Keep other scripts | %E4%B8%9C%E4%BA%AC-travel-guide |
What the tool cannot check
Whether a slug is already in use on your site cannot be known from a web page that does not see your site, so the tool says so instead of guessing. Check your publishing tool before you use a slug. Also keep a slug stable after a post is published: changing it changes the address, and every link to the old one then needs a redirect.
Related tools and guides
- Title and meta description checker: measures the title that goes with this address.
- Heading outline and table of contents: builds a table of contents for the same post.
- Keyword density checker: shows which words dominate the post.
- Connect WordPress and Indexing: how published addresses reach your site and search engines. More in the docs.
Frequently asked questions
How long should a slug be?
Google's URL guidance page asks for readable words and a simple structure and names no maximum length. The tool starts at 60 characters because short addresses are easier to read and share, and you can set any whole number from 1 to 200.
Why hyphens and not underscores?
Google recommends hyphens to separate words in a URL because they help people and search engines see the separate words, and it does not recommend underscores. The tool uses hyphens only.
What happens to a title in Chinese, Arabic or Russian?
By default the letters are dropped, since the tool cannot transliterate them, and you see a warning that the slug is lossy. Tick the option to keep letters from other scripts and they stay in the slug as percent-encoded UTF-8.
Should I remove small words such as "the" and "of"?
It is a matter of taste. Removing them shortens the slug and can read well, as in art-war, and the tool keeps at least two words so a short title is not emptied. Leave them in when they carry meaning.
Can the tool tell me whether my slug is already taken?
No. A page in your browser cannot see the posts on your site. Check your publishing tool for a duplicate before you publish.
Sources
Put BlogAutoPost on your blog
Start a 7-day trial, connect your WordPress, Shopify or Webflow blog and approve the first draft yourself.
- $1 for a 7-day trial. When the 7 days end, your card is charged from $95 a month for one site, and the plan renews every month until you cancel.
- Cancel any time with our ready-made cancel email. No reason needed.
- Your first paid month can be refunded within 7 days of paying it. Write to hello@blogautopost.com.