Slugify
Convert any string into a URL-safe slug. Strips diacritics, lowercases, and joins words with hyphens (or any separator you pick).
Add this tool to your own site with one line of HTML. Free forever — just keep the small credit link.
How to use Slugify
- Paste a title, headline, product name, or any string — one phrase per line if you have several.
- Keep the default hyphen separator for URLs, or change it (for example to an underscore) to match your framework or CMS.
- Leave Lowercase on for standard web URLs, or turn it off if your system needs mixed case.
- Read the generated slug in the output box — accents are stripped, punctuation is removed, and words are joined by your separator.
- Copy the slug and paste it into your URL, file name, or anchor ID. The conversion runs in the page itself, so titles for drafts you have not published yet stay private.
What a slug is and why it matters
A slug is the human-readable part of a URL that identifies a page — the best-coffee-grinders in example.com/blog/best-coffee-grinders. A good slug is lowercase, free of spaces and special characters, and made of real words separated by hyphens. This tool turns any title into exactly that, handling the fiddly details — accents, punctuation, and repeated separators — automatically.
How the conversion works
Slugification happens in a few deterministic steps. First the text is Unicode-normalised and its accent marks are stripped, so é becomes e. Next it is lowercased (unless you turn that off). Then every stretch of non-alphanumeric characters is replaced by your chosen separator. Finally, runs of repeated separators are collapsed and any leading or trailing separator is trimmed. The result is always clean, regardless of how messy the input was.
Why slugs help SEO
Search engines and humans both read URLs. A descriptive slug that contains your target keywords gives a clear signal about the page's topic and produces a tidy, clickable link in search results and when shared. Compare /p?id=8842 with /men-running-shoes — the second tells the reader what to expect before they click. Keeping slugs short and keyword-focused, and not changing them after publishing, are two of the simplest on-page SEO habits.
Choosing a separator
Hyphens are the standard for web URLs because search engines treat them as word boundaries. Underscores are common in file names and some programming contexts but are read as part of a single word by crawlers, so avoid them in public URLs. The tool lets you set any separator so the same slug can be adapted to URLs, file names, anchor IDs, or database keys.
Slugify a whole batch at once
Migrating a blog or seeding a CMS often means slugifying dozens of titles. Paste them one per line and you get a matching column of slugs you can copy straight into a spreadsheet or import file — far faster than converting each title by hand.
Related text tools
- Case Converter — switch a slug to a heading or vice versa.
- Remove Duplicate Lines — make sure no two slugs collide.
- Find and Replace — tweak a batch of slugs in one pass.
- Sort Lines — alphabetise a list of generated slugs.
Frequently asked questions
Does it strip accents like à → a and ñ → n?
Why hyphens instead of underscores?
Can I slugify multiple titles at once?
What happens to punctuation and symbols?
Will it handle ampersands and the word "and"?
How long should a slug be?
Can I use this for file names and IDs too?
Is my text uploaded anywhere?
Related tools
More tools you might find useful in the same flow.
Word Counter
Word counter online: count words, characters, sentences, and paragraphs in real time, with reading and speaking time estimates. Free, and no signup needed.
Case Converter
Case converter online — switch text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, and kebab-case instantly. Free to use.
Remove Duplicate Lines
Remove duplicate lines from text online — paste a list and get a deduped version instantly, with case-sensitive or insensitive matching. Free and private.
Sort Lines
Sort lines of text online — alphabetically A to Z or Z to A, numerically, or by length, with an option to drop blanks. Free and instant in your browser.
Built by Muhammad Tahir · About