Slug Generator
Paste a title like Las 10 Mejores Recetas de Paella, Edición 2026 and the generator returns las-10-mejores-recetas-de-paella-edicion-2026. It folds accented characters to ASCII, lowercases everything, replaces whitespace and punctuation with hyphens, collapses runs of hyphens to one, and strips leading/trailing hyphens. Optional stop-word filtering drops the, a, of, etc. for shorter slugs.
How a slug is built
-
1
Paste your title
Any language, any length. The source text is never truncated mid-word.
-
2
Unicode is normalized
NFKD decomposition splits accents from letters; combining marks are stripped. `ñ` becomes `n`, `ö` becomes `o`.
-
3
Whitespace and punctuation collapse
Anything not in [a-z0-9] becomes a hyphen; consecutive hyphens collapse into one.
-
4
Optional max length
Truncate at 60/80 characters without breaking mid-word.
Examples
| Input | Slug |
|---|---|
Hello, World! |
hello-world |
Café & Croissants: a Parisian Guide |
cafe-croissants-a-parisian-guide |
2024 vs 2025: Which Year Wins? |
2024-vs-2025-which-year-wins |
¿Qué hora es? |
que-hora-es |
Apple M3, Real-world benchmarks |
apple-m3-real-world-benchmarks |
Leading/trailing spaces |
leading-trailing-spaces |
SEO considerations
- Keep slugs readable.
/recipes/paellabeats/recipes/post?id=17. - Include the target keyword early. Search engines give slight weight to URL terms, especially in the first 3-4 words.
- Avoid date tokens unless the content is date-dependent, otherwise you invite immediate canonical drift (
/2024/best-headphonesstings in 2026). - Do not stuff.
/best-cheap-running-shoes-for-men-women-kids-under-50-dollars-on-saleis both a slug and a cry for help. Pick two or three concepts. - Match the h1 loosely. Slug and title should be recognizably the same content; they do not need to be identical.
Language-specific issues
- German umlauts. Konvention in publishing is
ü → ue, notu. Ask if your CMS supports that. - Polish special letters.
łis not decomposable via NFKD; it stays aslonly if you have a custom map. - Non-Latin scripts. Arabic, Chinese and Cyrillic slugs are valid in URLs (IRIs), but tooling breaks in some CDNs. Most sites transliterate (e.g., pinyin for Chinese).
- Emoji. Stripped entirely by default. Even the ones that survive are hostile to URL sharing.
Collision handling
If two pieces of content produce the same slug, the second usually gets a suffix: -2, -3, or a short hash. Avoid relying on timestamps in the slug, they are ugly and rarely useful.
Frequently Asked Questions
They are technically valid but case-insensitive only in some parts of the URL. Most CMSes and search engines treat /About and /about as different URLs, so lowercase is safer and standard.
3-5 words or roughly 50-60 characters. Longer slugs are crawlable but look cluttered in search results and get truncated in shares.
Yes, but hyphens are the convention and Google’s John Mueller has repeatedly said Google treats hyphens as word separators and underscores as joiners. Stick with hyphens.
You can keep them via URL encoding, but most platforms transliterate to ASCII for compatibility. The generator defaults to ASCII-safe slugs.
Related Tools
ASCII Table Reference
Full ASCII table from 0 to 127 with decimal, hex, octal, binary, standard names and HTML numeric-reference notation, including NUL, LF and DEL.
Color Palette Generator
Generate monochromatic, analogous, complementary, triadic or tetradic color palettes from a base HEX color and export copy-ready CSS variables.
FPS Counter
Measure browser FPS with requestAnimationFrame, smoothing, min/max frame rate, warnings and an optional graph. Runs locally with no upload or API.
HTML Character Reference
Searchable list of HTML entities, their named and numeric codes, and a one-click copy for special characters and symbols.
HEX Color Picker
Pick or enter a HEX colour and get RGB, HSL, approximate CMYK, relative luminance and contrast ratios against white and black.
Color Wheel Explorer
Explore the colour wheel interactively. Rotate harmonies, compare HSL vs RYB, spot complementary and triadic pairs in real time.
Tool available in other languages
- スラグ生成器 [JA]
- Slug-generator [SV]
- Slug-generator [NL]
- 슬러그 생성기 [KO]
- Generator Slug [ID]
- Slug-Generator [DE]
- مولد الـ Slug [AR]
- Gerador de Slug [PT]
- Generador de Slugs [ES]
- Generator slugów [PL]
- เครื่องมือสร้างสลัก (Slug) [TH]
- Trình tạo slug [VI]
- Générateur de Slugs [FR]
- Generatore di Slug [IT]
- Генератор слагов [RU]
- Slug Oluşturucu [TR]
- Slug 生成器 [ZH]