Slugify Tool

Your slug—
Slug length—
Words in input—

How Slugify Tool is calculated: Slug = lowercase text, accents removed, every run of non-letters and non-digits replaced by one hyphen, edges trimmed.

What is a slugify tool?

A slugify tool turns a title into a slug — the clean, lowercase, hyphenated tail of a web address. Hello World: A Quick Guide! becomes hello-world-a-quick-guide, which is 25 characters long and safe to paste into any URL. The part after the last slash of a page address is the slug, and this tool makes it from any text you type, instantly, as you type.

The need comes up every time something is published. A blog post needs an address. A product needs a link. A help article needs a permanent home. Titles have capital letters, spaces, punctuation, and accents, and none of those belong in a URL. A slug keeps only small letters, digits, and hyphens, so the address works everywhere — in an email, in a chat message, in a printed flyer — without ever being encoded or broken.

This tool covers the whole job in one box: type or paste a title, and the slug appears below it, live, with its length and the input word count shown above. Everything runs in your browser — your text never leaves your device, nothing is stored, and there is no account to create. A text formatter tidies the same title in other ways, and a case converter changes its capitalisation if you want a different style first.

How a slugify tool works

The conversion follows five plain steps, in order. First, accents are removed: é becomes e, ñ becomes n, ü becomes u, and ç becomes c. The tool does this with Unicode normalisation — it splits each accented letter into its base letter plus a combining mark, then drops the marks — so it handles the whole Latin range, not just a short list.

Second, everything is lowercased, so Hello becomes hello and GUIDE becomes guide. Third, every run of characters that is not a small letter or a digit is replaced by a single hyphen — spaces, colons, ampersands, and dashes all become one hyphen each, never two. Fourth, repeated hyphens are collapsed, and fifth, any hyphen at the start or end is trimmed away.

The result is always the same for the same input, which is the whole point of a slug: it is a stable, predictable address. Hello World! becomes hello-world, 11 characters. The default title on this page, Hello World: A Quick Guide!, becomes hello-world-a-quick-guide, 25 characters. No step in the process needs a server, a dictionary, or a network call, so it works offline once the page has loaded.

Accents, punctuation, and edge cases explained

Accents are the input people worry about most, and they are the easiest part. Café becomes cafe, señor becomes senor, and Zürich becomes zurich. The normalisation step handles à, é, ñ, ü, ç, and every other common Latin accent the same way, so a French, Spanish, or German title slugifies cleanly without a special case for each language.

Punctuation is the second edge. An ampersand, a colon, an em dash, and an exclamation mark all become hyphens, and a run of them becomes one hyphen, not four. Café & Bar — 2026! becomes cafe-bar-2026, 13 characters — the & and the — and the ! collapse into single hyphens, and the year stays as digits. Numbers are kept as they are, because a year or a version number belongs in a slug.

The third edge is empty input. A title made only of punctuation — !!! or --- — has no letters or digits left after cleaning, so the slug is empty, and this page shows a dash instead of a blank box. That is honest: there is no slug to show. Type a word with a letter in it and the slug appears. A word counter can check the length of the same title if you are trimming it to fit a limit.

A worked example: three titles, three slugs

Here is a real comparison, using the exact outputs this page shows. First, the default title: Hello World: A Quick Guide! — 5 words. Lowercase it, drop the colon and the exclamation mark, replace the spaces with hyphens, and you get hello-world-a-quick-guide, 25 characters. That is a good slug: readable, short, and it says what the page is about.

Second, a short title: Hello World! — 2 words. The same steps give hello-world, 11 characters. Two words make a clean address, and short slugs are easier to remember, easier to type, and easier to share in a message. If you can say what a page is in two or three words, do that, and let the slug be short.

Third, a messy title: Café & Bar — 2026! — 5 words as typed. Accents come off first, so Café becomes cafe; the & and the — and the ! each become a hyphen; the runs collapse; and the result is cafe-bar-2026, 13 characters. Three very different titles, three clean slugs, and not one of them needed a hand edit.

Who uses a slugify tool, and why

Bloggers and content writers are the biggest users. Every post they publish needs an address, and the slug is the part readers see and search engines read. A good slug carries the post's keywords — hello-world-a-quick-guide tells a reader and a search engine what the page holds — while a bad slug like post-12345 says nothing at all.

Developers are the second group. Product pages, user profiles, help articles, and category pages all need slugs generated from names, and this tool is the quick way to check what a given title will produce before the code runs. A URL encoder decoder handles the opposite problem — making a whole URL safe to carry inside another URL — while this tool makes the readable tail of the address itself.

Shop owners are the third group. A product called Café Blend — Dark Roast (250g) needs a link a customer can read and trust, and cafe-blend-dark-roast-250g is that link. The generator on this page handles all three uses — paste, copy the slug, publish — which covers ninety percent of what anyone needs.

SEO writers are a fourth group, and they use slugs as keyword carriers. A slug with the page's main words in it helps a search engine understand the page, and it helps a human decide whether to click. Short, word-filled slugs beat long, number-filled ones every time, and a slugify tool is how you get them without typing hyphens by hand.

Slugify tool vs URL encoder

A slugify tool and a URL encoder both clean up web addresses, but they solve different problems. A slugify tool rewrites a title into a readable address: Hello World! becomes hello-world. A URL encoder keeps the text as it is and escapes the unsafe characters: Hello World! becomes Hello%20World%21. The slug is for humans; the encoding is for machines.

The difference matters for workflow. Use a slug when you are naming a page — a post, a product, a category — because the slug is permanent and public. Use a URL encoder decoder when you are passing a value inside a link, such as a search term or a redirect address, where the exact original text must survive the trip. One makes addresses readable; the other makes data safe to carry.

Never mix the two jobs up. An encoded title is not a slug — Hello%20World is ugly, hard to read, and bad for search — and a slug is not an encoding, because it throws away the original punctuation instead of preserving it. And a case converter answers a different need entirely: changing how text looks, not how it travels.

Common slug mistakes

The most common mistake is leaving the slug to the machine. A content system that makes slugs from IDs gives you post-12345, which tells nobody anything. Write the title first, slugify it, and use the words that describe the page. A slug is a headline in miniature, not a serial number.

Second: slugs that are too long. A ten-word title makes a ten-word slug, and a ten-word address is hard to share and hard to read. Cut the title down to three or four words before you slugify it. The default title here gives a 25-character slug, which is fine; a 60-character slug is not.

Third: changing a slug after publishing. A slug is an address, and other pages link to it. Change it and every old link breaks, every bookmark dies, and search engines start over. Pick the slug once, before you publish, and leave it alone. If you must change it, set up a redirect from the old address to the new one.

Fourth: stuffing keywords into the slug. Repeating the same word three times — best-cheap-shoes-buy-cheap-shoes-online — looks like spam to readers and to search engines. One clear phrase beats three stuffed ones. A word counter can tell you how many words your title has before you trim it.

How to use this slugify tool

Using this slugify tool is simple. Paste your title into the box, or type it directly. The slug appears instantly in the box below — there is no button to press and no form to submit. The default text shows the pattern: Hello World: A Quick Guide! becomes hello-world-a-quick-guide, 25 characters.

To copy the result, use the Copy button next to the output box. To try another title, select all, delete, and paste the new one — the slug updates live. If the slug comes out empty, your title had no letters or digits in it; add a word and it will appear. If it comes out too long, shorten the title to three or four words and try again.

Everything runs in your browser. No sign-up, no account, no data sent anywhere — your text never leaves your device. It works offline once the page has loaded, so you can use it on a plane, in a classroom with no signal, or anywhere else you write. Try it with something real before you need it: paste your next post title, or a product name, and copy the slug. Once you have used it twice, you will never type hyphens by hand again.

Frequently Asked Questions

A slug is the clean, lowercase, hyphenated tail of a web address — the part after the last slash. Hello World: A Quick Guide! becomes hello-world-a-quick-guide. Slugs use only small letters, digits, and hyphens, so they work in every browser, email, and chat message without being encoded or broken.

Accents are removed before anything else. Café becomes cafe, señor becomes senor, and Zürich becomes zurich. The tool uses Unicode normalisation, which splits each accented letter into its base letter plus a combining mark and drops the marks, so it handles the whole Latin range — à, é, ñ, ü, ç, and more — not just a short list.

The slug comes out empty, because punctuation is stripped and there are no letters or digits left. This page shows a dash instead of a blank box. Add a word with a letter in it and the slug appears. A title like !!! or --- has no slug to show, and the dash says so honestly.

No, if you can avoid it. A slug is an address, and other pages link to it. Changing it breaks every old link and bookmark, and search engines have to start over. Pick the slug once, before you publish, and leave it alone. If you must change it, set up a redirect from the old address to the new one.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.