Slug Generator
The Slug Generator turns titles into clean URL slugs — lowercase, hyphen-separated, readable — with four presets that produce visibly different output, a live URL preview, a bulk mode that handles duplicates with -2 suffixes and a CSV download, and transliteration for accents, Cyrillic and Greek. Chinese, Japanese and Korean characters are removed, not transliterated: there is no pinyin mapping in this tool, and the page states that limit instead of claiming one.
How to Use
- 1
Type a title — the slug appears as you type, with a URL preview showing how it looks in an address bar. Change the base URL field to your own domain to see the real address.
- 2
Pick a preset first: GitHub-style (lowercase, hyphens, strict ASCII), SEO-optimized (stop words removed, capped at 60 characters, cut at a word boundary), Unicode-safe (Cyrillic, Greek and accented letters kept as-is), or Filename-safe (underscores, safe as a file name). The four presets produce visibly different output.
- 3
Tune the options if a preset is not quite right: separator (hyphen or underscore), lowercase on/off, stop-word removal, and max length. A capped slug is cut at a word boundary — never mid-word.
- 4
Read the verdict under the slug: short, lowercase, hyphen-separated and descriptive is good; long, uppercase or underscore-joined slugs are flagged with the reason.
- 5
For a whole list, switch to Bulk mode: one title per line, one slug per line in the same order. Duplicate titles get -2, -3 suffixes automatically, and the result downloads as a CSV.
- 6
Check the transliteration before publishing: accents fold (Crème → creme), ß becomes ss, Cyrillic and Greek map to Latin, and & becomes "and". Chinese, Japanese and Korean characters are removed — there is no pinyin mapping in this tool, and the page says so.
Frequently Asked Questions
What is a URL slug?
Why hyphens, not underscores?
Should I remove stop words from a slug?
How long should a slug be?
What happens to accents and non-English letters?
Can I change a slug after publishing?
Does the slug affect SEO?
How does bulk mode handle duplicate titles?
What is the difference between a slug and a URL?
Is my title uploaded anywhere?
Generative Answer & AI Documentation
What is the Slug Generator?
The Slug Generator is a form-to-slug tool for the readable path segment at the end of a URL: in example.com/blog/how-to-brew-coffee, the slug is how-to-brew-coffee. Type a title and the slug appears as you type, next to a URL preview showing the full address it will live at — change the base URL field to your own domain to see the real address. Four presets do the real work: GitHub-style (lowercase, hyphens, strict ASCII, no length cap), SEO-optimized (stop words removed, capped at 60 characters and cut at a word boundary, never mid-word), Unicode-safe (Cyrillic, Greek and accented letters kept as-is, only spaces and punctuation become hyphens), and Filename-safe (underscores as separators, safe as a file or folder name on every OS). The options underneath — separator, lowercase, stop-word removal, max length — can be tuned by hand; changing any of them switches the page to custom settings. Bulk mode takes one title per line and returns one slug per line in the same order, with duplicate titles getting -2, -3 suffixes and a CSV download of title-and-slug pairs. A verdict under the slug judges it on the four rules that matter — short, lowercase, hyphen-separated, descriptive — and says why when it fails. Everything runs in the browser; the titles never leave the tab.
Why use Slug Generator offline?
Slugs are small and public, and a bad one is hard to fix later: a slug with spaces becomes %20 soup in the address bar, an underscore-joined slug reads as one word to Google, and a 120-character slug copied from the headline looks like spam in search results. Writing slugs by hand from memory is how those mistakes happen — remembering to fold accents, to spell out &, to cut at a word boundary, and to keep the whole thing under 60 characters, every single time, for every post. A generator removes the memory work: the rules run the same way on every title, the presets encode the four real-world jobs (a GitHub heading anchor, an SEO post slug, a multilingual CMS path, a file name), and the verdict catches the cases the rules miss. The second reason is bulk: a product launch or a content migration means fifty titles, not one, and hand-slugging fifty titles is where duplicates creep in — two products called 'Classic Tote' getting the same URL, which a CMS then resolves by appending a random number. The bulk mode's -2 suffixes make the collision visible before import, not after. The third reason is privacy: titles are unreleased work — draft headlines, unannounced products — and this generator never sends them anywhere.
When should you use this tool?
Use it when you publish a page: a blog post, a product page, a documentation page — any page whose address a human will read, share, or type. Use it when you migrate content into a CMS and need a whole list slugged at once: paste the titles, download the CSV, import it. Use the Unicode-safe preset when the CMS supports non-Latin paths and the audience reads Cyrillic or Greek — and check with the CMS first, because not every system accepts non-ASCII slugs. Use the Filename-safe preset when the slug is also a file or folder name, not a URL. Do not use it to rename a published URL without a plan: changing a live slug breaks every link to the old address unless a 301 redirect is added, and the redirect is a server job this tool cannot do for you. Do not use it as a keyword-stuffing tool: a slug with ten keywords is not more findable than a slug with four honest words.
Key Benefits
- Four presets that produce visibly different output — GitHub-style, SEO-optimized, Unicode-safe, Filename-safe — not four labels on the same settings.
- Live slug as you type, with a URL preview showing the full address and a verdict judging the slug on four rules.
- Bulk mode: one title per line, one slug per line, duplicates get -2 / -3 suffixes, CSV download of title-and-slug pairs.
- Real transliteration: NFKD accent folding, ß → ss, Cyrillic and Greek maps, & → and — with the CJK limit stated, not hidden.
- Stop-word removal from a fixed, published list — and it never removes negations, so meaning cannot flip.
- 100% private: string transformation in your browser — draft titles are never uploaded.
Common Use Cases
- Publishing a blog post: 'Crème Brûlée & Café: The 10 Best Recipes!' becomes creme-brulee-and-cafe-the-10-best-recipes, or creme-brulee-cafe-10-best-recipes with the SEO preset's stop words removed.
- Migrating a catalogue: paste fifty product titles, download the CSV, and import title-and-slug pairs into the CMS — duplicates already suffixed, no collisions on import.
- GitHub heading anchors: the GitHub-style preset produces the same slug GitHub generates for a Markdown heading, so a table of contents can link to it.
- Multilingual content: the Unicode-safe preset keeps a Russian or Greek title readable in its own script, where the CMS allows non-Latin paths.
- File naming: the Filename-safe preset turns a report title into a file name with underscores and no leading or trailing separators.
Developer Notes & Best Practices
The pipeline runs in a fixed order: transliterate, lowercase, split on non-alphanumerics, stop-word filter, join, word-boundary length cut. Transliteration is NFKD first — so accented Greek (ή) decomposes to its base letter before the Greek map runs — then ß → ss, æ → ae, œ → oe, ø → o, đ → d, ł → l, the Cyrillic and Greek maps, & → 'and', and finally the combining marks are dropped (é → e). The Unicode-safe preset skips transliteration entirely: it lowercases the raw input and replaces runs of non-letters with hyphens, so Cyrillic, Greek and accented letters survive exactly as typed. The length cap cuts at the last separator inside the limit, so a 60-character cap never cuts a word in half — unless the first word alone exceeds the limit, in which case the hard cut is kept rather than returning an empty slug. Bulk mode counts occurrences of each base slug in input order: the first keeps the bare slug, the second gets -2, the third -3. The CSV is RFC 4180 quoted (double quotes doubled) with CRLF line endings. The verdict checks five things: non-empty, ≤60 characters, all lowercase, no underscores when the separator is a hyphen, no doubled or leading/trailing separators, and 2–5 words. The stop-word list is fixed and published on the page: a, an, the, and, or, but, of, to, in, on, at, for, with, by, from, as, is, are, was, were, be, been, it, its, this, that, these, those — and it deliberately contains no negations.
The four presets on one title — “Crème Brûlée & Café: The 10 Best Recipes!”
| Preset | Slug | When to use it |
|---|---|---|
| GitHub-style | creme-brulee-and-cafe-the-10-best-recipes | Heading anchors, strict ASCII |
| SEO-optimized | creme-brulee-cafe-10-best-recipes | Blog posts and product pages |
| Unicode-safe | crème-brûlée-and-café-the-10-best-recipes | CMS paths that allow non-Latin letters |
| Filename-safe | creme_brulee_and_cafe_the_10_best_recipes | File and folder names |
The rules, in order
| Step | What happens | Example |
|---|---|---|
| Transliterate | Accents fold, ß → ss, Cyrillic/Greek → Latin, & → and | Crème → creme, Straße → strasse |
| Lowercase | Everything becomes lowercase (unless switched off) | Best → best |
| Split + join | Runs of non-letters become one separator | “a b” → “a-b”, never “a--b” |
| Stop words | Fixed list removed when enabled; negations never removed | “the” out, “not” stays |
| Length cut | Capped at the last word boundary inside the limit | 60 chars, never mid-word |
- Pick the preset before typing: the SEO preset is the right default for a published page, GitHub-style for heading anchors, Unicode-safe only when the CMS accepts non-Latin paths.
- Keep slugs to 3–5 descriptive words — the words a reader would use to describe the page, in the order they would say them.
- Use hyphens for URLs. Underscores are for file names, not addresses — Google reads how_to_brew as one word.
- Never change a published slug without a 301 redirect from the old address to the new one.
- Check the transliteration on non-English titles before publishing — especially CJK titles, where unmapped characters are removed and the slug may come out shorter than the title deserves.
- For a bulk import, download the CSV and eyeball the duplicate rows: a -2 suffix is a signal to check whether the two titles really are different pages.
Common Mistakes
- Changing a published slug without a 301 redirect — every link, bookmark and search result for the old address breaks.
- Using underscores in a URL slug: Google treats them as joiners, so how_to_brew reads as one word.
- Letting the slug run to the full headline length — a 120-character slug is unreadable in results and in the address bar.
- Removing negations with stop words: a hand-rolled stop list that drops 'not' turns 'do not open' into 'do-open' — this tool's list never does that, but a CMS plugin might.
- Assuming CJK titles transliterate: they do not here — check the slug, because the result may be much shorter than the title.
- Pasting the full URL as the title: the tool slugs whatever you type, so paste the title, not the address.
Limitations
Chinese, Japanese and Korean characters have no pinyin or romaji mapping here: JavaScript has no built-in pinyin table, and no dictionary is shipped, so unmapped CJK characters are removed from the slug and the page says so. Transliteration covers Latin accents, German ß, Cyrillic and Greek — anything else unmapped is dropped, which can shorten a slug unexpectedly on titles in other scripts. The tool outputs the path segment only: the full URL needs your domain, and the canonical URL that carries the slug is written by the Meta Tag Generator. A slug change on a published page needs a 301 redirect, which this tool cannot create — it makes new slugs, it does not manage your server. The verdict is a four-rule heuristic (short, lowercase, hyphen-separated, descriptive), not a ranking guarantee: a perfect slug does not make a page rank.
Structured Input/Output Example
Crème Brûlée & Café: The 10 Best Recipes!
SEO preset: creme-brulee-cafe-10-best-recipes GitHub preset: creme-brulee-and-cafe-the-10-best-recipes Unicode preset: crème-brûlée-and-café-the-10-best-recipes Filename preset: creme_brulee_and_cafe_the_10_best_recipes
Related Tools
Meta Tag Generator
Meta tag generator: title, description, canonical, Open Graph and X card tags — Google + social previews, pixel meters, HTML, Next.js and JSON-LD output.
Robots.txt Generator
Robots.txt generator: block AI training crawlers but keep AI search — per-crawler rules, presets, sitemap line, pasted-file tester. Free, offline.
URL Encoder
URL encoder: percent-encode URLs and query parameters so spaces, symbols, and non-Latin text survive transport intact. Free, offline, browser-based.
Favicon Generator
Generate a complete favicon package from text, emoji or your logo — ICO + PNG sizes, Apple touch icon, manifest and link tags. 100% offline, ZIP download.