Slug Generator

Turn a title or any text into a clean URL slug. Accents are removed, spaces become hyphens and the result updates as you type.

Paste a headline, a product name or a full sentence. The slug is rebuilt on every keystroke.

Generated slug

Lowercase · ASCII only · hyphen separated —

Worked examples

Input text Resulting slug
10 Tips for a Faster Website10-tips-for-a-faster-website
Café au lait & croissantscafe-au-lait-croissants
Héllo, Wörld! (2026)hello-world-2026
C++ vs. Rust: Which One?c-vs-rust-which-one
Don't stop believingdont-stop-believing
Multiple   spaces heremultiple-spaces-here

Punctuation is removed rather than transliterated, which is why C++ loses its plus signs.

Rate this Tool

0.0/5

Based on 0 user ratings.

A slug is the human-readable part of a URL

The domain tells you where a site lives and the slug tells you what the page is about. A good slug stays short, uses plain characters and survives being copied into a chat window, an email or a spreadsheet.

What a URL slug is

In https://toolburst.com/slug-generator/, the slug is the final segment: slug-generator. It is not a file name and it does not have to match the title, although the two usually overlap. The slug is an identifier that a server maps to content, which is why changing it later means setting up a redirect.

Slugs appear in more places than the address bar: search results, social previews, analytics reports, log files and printed QR codes. A slug that is short, lowercase and free of encoded characters is easier to read in all of them.

The transformation steps

This generator applies a fixed pipeline. Every step is visible in the result, which makes it easy to predict what a given headline will produce.

input text Café & Co. normalize strip accents lowercase a–z only remove symbols keep 0–9 hyphenate cafe-co spaces and repeated hyphens collapse into a single hyphen

The accent step uses Unicode normalization form D, which splits an accented character into a base letter plus a combining mark. The marks are then deleted, turning é into e, ü into u and ç into c. Lowercasing happens after that, so uppercase accented letters are handled the same way.

The character filter keeps only a–z, 0–9, spaces and hyphens. Everything else is dropped instead of being percent-encoded, because a slug full of %20 and %2C is harder to read and harder to say out loud.

How each character type is treated

InputResultReason
Uppercase lettersLowercaseServers may treat paths as case-sensitive
Accented lettersBase letterKeeps the URL readable without encoding
SpacesSingle hyphenA space is not valid unencoded in a path
ApostrophesRemovedJoins the surrounding letters into one word
Ampersands, slashes, colonsRemovedReserved characters with URL meaning
Dots and commasRemovedNot needed for readability in a path
Emoji and CJK textRemovedOutside the ASCII filter used here

The last row is the important limitation. A title written entirely in Chinese, Japanese, Korean, Arabic or Cyrillic produces an empty slug with this filter, even though browsers can display those characters in a URL. If you need multilingual slugs, keep the original text and add a transliteration step or a manual override.

Hyphens, underscores and encoded characters

Search engines generally treat a hyphen as a word separator, while an underscore is treated as a joiner. In practice, red-shoes reads as two words and red_shoes may read as one token. Hyphens are also what people expect to see, and they are safe in every common URL context.

Avoid percent-encoding unless there is no alternative. A slug like caf%C3%A9-menu works, but it is unreadable in a printed link and breaks when copied through systems that decode it twice. The ASCII-only approach on this page trades a little linguistic accuracy for reliability everywhere.

Choosing a slug you can keep

A slug is cheap to create and expensive to change. These habits reduce the number of redirects you need later:

  • Lead with the subject. Put the distinctive words first, not the site name or a category prefix that every page shares.
  • Drop filler words when they add nothing. how-to-make-a-website is clearer than the-ultimate-guide-on-how-you-can-make-a-website.
  • Keep numbers that carry meaning. A year in the slug dates the page; keep it only if the content is genuinely annual and you plan to update the URL each year.
  • Do not stuff keywords. Repeating a term makes the URL longer without making it clearer.
  • Decide before publishing. Renaming a live page means a 301 redirect, updated internal links and a refreshed sitemap.

There is no enforced maximum length for a path segment, but shorter slugs survive messaging apps, analytics dashboards and printed material with fewer line breaks. A handful of meaningful words is usually enough.

Common slug mistakes

  • Assuming case does not matter. Many servers treat /About and /about as different paths, which creates duplicate pages and broken links.
  • Leaving a trailing hyphen. A filter that removes punctuation without trimming can leave hello-world-; strip separators from both ends.
  • Letting two posts collide. Two articles titled "Update" produce the same slug. Most systems append a numeric suffix, which is a signal to write a more specific title.
  • Changing slugs on a whim. Every change needs a permanent redirect from the old path, or existing links and rankings break.
  • Embedding session data or dates by default. /2026/11/15/post locks the URL to a date that may not match the content after an update.
  • Using the slug as a title. The slug is for machines and links; the h1 is for readers and can keep the accents and punctuation.

A useful test: read the slug out loud. If you would have to spell a character or explain a symbol, simplify it.

Related Text & Writing Tools

Tool What does it do? Action
Text Character Counter & Word Counter Free text counter: count characters with and without spaces, words and sentences, and estimate reading time. Check social media and SEO limits instantly. Count Text →
Case Convert your text between uppercase, lowercase, title case, and sentence case instantly. The perfect tool for students, secretaries, and writers. Change Case →
Instagram & TikTok Line Breaker Add clean line breaks to your Instagram and TikTok captions. Our space fixer tool inserts invisible characters to keep your formatting perfect and professional. Line Breaks →
JSON Formatter & Validator Format, validate, and minify JSON quickly and for free. Perfect for developers, API testers, and data analysts looking to prettify JSON or check syntax errors. Format JSON →
AI Prompt Optimizer Optimize your prompts for any AI model. Transform basic prompts into effective, structured inputs for ChatGPT, Claude, Gemini, Llama and more. Free and easy. Prompt Helper →
Lorem Ipsum Generator Generate placeholder paragraphs, sentences or words for layouts and mockups. Lorem Text →

Frequently Asked Questions

There is no hard limit, but a few meaningful words are enough. Short slugs are easier to share, less likely to wrap in search results and simpler to read in logs and analytics tools.

Hyphens are the safer convention because search engines generally treat them as word separators, while underscores may be read as joiners. They are also easier to see in an underlined link.

The generator normalizes the text, removes the combining marks that carry the accent and keeps the base letter. Café becomes cafe, which avoids percent-encoding and keeps the URL readable.

Yes, but set up a permanent 301 redirect from the old path, update internal links and refresh the sitemap. Without a redirect, visitors and search engines see a dead page.

A readable slug helps people and gives search engines a hint about the topic, but it is a minor factor compared with the content itself. Avoid keyword stuffing; it makes the URL longer without adding value.

The filter keeps ASCII letters and digits only, so scripts outside that range are removed. For those titles, transliterate the text first or write a short English slug by hand.