Text to Slug
Convert any text into a URL-friendly slug. Handles special characters, accents, and unicode.
How to use
- 1 Type or paste any text — title, heading, or phrase — into the input field.
- 2 The URL-friendly slug is generated instantly as you type.
- 3 The tool lowercases everything, replaces spaces with hyphens, and strips special characters.
- 4 Click Copy to grab the result for use in URLs, filenames, or database keys.
Key features
- Instant real-time conversion as you type
- Lowercases, replaces spaces with hyphens, and strips accents and special chars
- SEO-friendly output ready for URLs, filenames, or database slugs
- Works with any language input — diacritics are normalized
What is a URL Slug?
A slug is the part of a URL that identifies a specific page in a readable, human-friendly way. In https://example.com/blog/my-first-post, the slug is my-first-post.
Good slugs are lowercase, use hyphens instead of spaces, strip accents and special characters, and contain only letters, numbers, and hyphens. They matter for both user experience and SEO — a clean slug is easier to share, easier to remember, and gives search engines a clear signal about the page content.
Common Use Cases
Blog and CMS post URLs
Convert an article title like "10 Tips for Better Code" into a clean URL slug automatically.
E-commerce product pages
Turn product names — including brands, model numbers, and special characters — into valid, consistent URLs.
Multilingual content
Convert titles with accents or non-Latin characters (ñ, ü, ç) into ASCII-safe slugs for universal URL compatibility.
CMS and headless APIs
Pre-generate slugs before inserting records into WordPress, Strapi, Contentful, or any database with a slug field.
Anchor links and IDs
Generate HTML element IDs or anchor fragment identifiers from section headings in documentation.
Package and file names
Normalize names for npm packages, Docker image tags, or any identifier that cannot contain spaces or capitals.
Slug Transformation Rules
What happens to each type of character when converting text to slug.
| Input | Result | Example |
|---|---|---|
| Uppercase letters | Lowercased | Hello → hello |
| Spaces | Replaced with - | My Post → my-post |
| Accented characters | Converted to ASCII equivalent | café → cafe |
| Special characters | Stripped | Cost: $5! → cost-5 |
| Multiple hyphens | Collapsed to one | a--b → a-b |