🔗 Text Slug Generator
Paste a title or heading and get a clean URL slug instantly — accents folded to plain letters, punctuation stripped, and spaces turned into your chosen separator, ready to drop into a permalink or file name.
🔗 Slugify Your Text
🔗 URL Slug
A slug is the clean, human-readable part of a URL. Accented characters are folded to plain letters, punctuation is removed, and spaces become your chosen separator — ready to drop into a permalink or file name.
What is a Text Slug Generator?
A slug generator converts a human title into the clean, hyphenated string that belongs in a URL or file name. It folds accented characters to their plain equivalents, removes punctuation and symbols, and collapses spaces into a single separator — the exact recipe a CMS uses to build a permalink.
Consistent, readable slugs help both people and search engines understand what a page is about. DocBetter builds the slug live in your browser as you type, with control over the separator and casing, so your text stays private and the result is ready to copy.
❓ Frequently Asked Questions
What is a URL slug?
A slug is the readable part of a web address that identifies a specific page — for example 'text-slug-generator' in this page's URL. Good slugs are short, lowercase, hyphenated, and free of punctuation and accents, which makes them easy to read, share, and index in search engines.
How are accented characters handled?
The generator normalises your text and strips diacritic marks, so 'Café' becomes 'cafe' and 'Málaga' becomes 'malaga'. That keeps slugs to plain ASCII, which is the safest, most portable form for URLs and file names across every server and browser.
Can I use underscores instead of hyphens?
Yes. Hyphens are the SEO-friendly default that search engines treat as word separators, but you can switch to underscores for file names or code identifiers. You can also keep the original capitalisation if you turn off the lowercase option.
Is my text kept private?
Yes. The slug is generated entirely in your browser as you type, so nothing is uploaded. It's safe to slugify unpublished titles, internal file names, and confidential headings.