Text to Slug
Convert any text to a clean, URL-friendly slug instantly.
Navigation
Private by default
Files stay in your browser. Nothing is uploaded unless a tool says otherwise.
Input — any text, title, or heading
URL Slug
☕ This tool is free forever. If it saved you time, buy me a coffee.
How it works
When to use this
Every blog post, product page, and CMS entry needs a URL-safe identifier. You could hand-craft slugs by lowercasing, replacing spaces with hyphens, and stripping special characters — or you could paste the title here and get a clean slug instantly. It's one of those small tasks that's annoying to do manually and trivial to automate.
Beyond URLs, slugs work well as filenames, database keys, CSS class names, and any identifier that needs to be human-readable without special characters. If you're building a CMS, static site, or API, slug generation is a constant need.
Google recommends 3-5 word slugs for SEO. Shorter URLs get higher click-through rates in search results, and keyword-rich slugs help both users and search engines understand the page before clicking. Get the slug right before publishing — changing a URL after it's indexed means setting up 301 redirects to preserve link equity.
Good to know
Accented characters get transliterated, not encoded. "Creme brulee" becomes "creme-brulee", not "cr%C3%A8me-br%C3%BBl%C3%A9e". The converter uses Unicode NFD decomposition to map accented letters to their ASCII equivalents. Clean output that works everywhere.
Consecutive hyphens collapse into one. Input like "hello - - world" produces "hello-world", not "hello---world". No stuttering hyphens cluttering up your URLs.
Leading and trailing hyphens are stripped. " — My Great Post — " becomes "my-great-post". No dangling punctuation on either end.
Numbers are preserved. "Top 10 Tips for 2024" becomes "top-10-tips-for-2024". Digits stay exactly where they are.
Quick Reference
| Input | Output | Why |
|---|---|---|
| How to Make Sourdough Bread | how-to-make-sourdough-bread | Standard conversion |
| Creme Brulee Recipe | creme-brulee-recipe | Accent transliteration |
| Price: $9.99!!! | price-9-99 | Symbols stripped, numbers kept |
| — Hello World — | hello-world | Trimmed edges, collapsed hyphens |
| React and Next.js Tutorial | react-and-next-js-tutorial | Dots removed |
| Uber Cool Cafe | uber-cool-cafe | Transliteration |