Text to Slug
100% FreeConvert any title to a URL-safe slug — handles diacritics (café → cafe), ligatures (ß → ss), &/+ expansion, configurable separator, smart truncation.
Embed This Tool
Easy to EmbedAdd Text to Slug to your website or blog in seconds.
- Responsive design
- Lightweight & fast
- No backend required
- Always up-to-date
<iframe
src="https://tools.town/embed/text-to-slug/"
width="100%"
height="600"
style="border:none; border-radius:12px;"
loading="lazy"
title="Text to Slug">
</iframe> Advertisement
How to Use
- 1 Type or paste a title into the input
- 2 Pick a separator — `-` (default), `_`, or `.`
- 3 Set max length (0 = no limit) for SEO-friendly URLs
- 4 Slug appears instantly, ready to copy
Features
- Lowercase + Unicode-NFD diacritic stripping (café → cafe)
- Ligature expansion (ß → ss, æ → ae, œ → oe)
- &/+ expanded to 'and' / 'plus'
- Configurable separator (-, _, .)
- Smart truncation at separator boundaries (no mid-word cuts)
- Optional preserve-case mode
Why it Matters
URLs need to be readable, ASCII-safe, and stable over time. A reliable slugify keeps SEO-friendly permalinks consistent across blog posts, products, and content imports. Smart truncation that cuts at word boundaries avoids the awkward 'my-very-long-url-tit' truncation that loses meaning.
Use Cases
Blog Permalinks
Convert article titles to permanent URL slugs
Product URLs
Generate clean URL paths from product names
File Naming
Sanitise titles for safe filenames (lowercase, dash-separated)
Frequently Asked Questions
Why does 'café' become 'cafe' but '日本語' becomes empty?
Why does the truncation sometimes go shorter than maxLength?
Is the slug guaranteed unique?
Related Tools You Might Like
Case Converter
Convert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more instantly.
Character Counter
Real-time character, word, line, sentence count plus Twitter / SMS / meta-description limit warnings. Grapheme-aware (emoji counts as 1).
Duplicate Line Remover
Strip duplicate lines from any list, preserving the first occurrence and original order. Case + whitespace toggles, optional alpha sort.
Find and Replace
Find and replace across a block of text — plain or full regex with back-references, case toggle, multiline mode.
Text Sorter
Sort lines five ways — alphabetical, natural (item2 < item10), length, numeric, random shuffle. Reverse, case toggles, blank-line handling.