Slugify: Make a Clean URL Slug
Paste a title, heading or product name and get back a clean URL slug in real time. Accented letters are folded to plain ASCII, every run of spaces and punctuation becomes a single separator, and stray separators at the ends are trimmed. Switch between a hyphen or underscore, keep or drop lowercasing, and cap the length to a whole word when you need a short slug.
How to make a URL slug
- Type or paste your title into the Title or text box.
- Choose Hyphen or Underscore from the Separator menu.
- Leave Lowercase ticked for standard URLs, or untick it to keep the original case.
- Tick Max length and set a number to cap the slug at a whole word.
- Read the Slug field, check the character count, and click copy.
Examples
A blog title to a slug
Hello, World! 10 Best Tips
hello-world-10-best-tips
Accents stripped to ASCII
Crème Brûlée Recipe
creme-brulee-recipe
Underscore separator
Blog Post Title
blog_post_title
Frequently asked questions
What makes a good URL slug?
A good slug is short, lowercase and readable, with hyphens between words and no spaces, accents or symbols. That keeps links tidy, easy to share, and simple for both search engines and people to parse at a glance.
How are accents and other languages handled?
Text is normalised so accented Latin letters lose their marks, turning 'é' into 'e' and 'ñ' into 'n'. Characters with no plain a to z or 0 to 9 equivalent, such as many non-Latin scripts, are treated as separators and dropped to keep the slug URL-safe.
Why use a hyphen instead of an underscore?
Search engines have long treated hyphens as word breaks and underscores as joiners, so hyphens are the safer default for indexable URLs. The tool still offers an underscore option for systems, filenames or frameworks that expect one.
What does the Max length option do?
It caps the slug at the number of characters you set, then trims back to the last complete word so nothing is cut mid-word and no trailing separator is left. For example, capping 'The Quick Brown Fox' at 13 yields 'the-quick' rather than 'the-quick-bro'.
Can I keep uppercase letters?
Yes. Untick the Lowercase box and the original casing is preserved, so 'Blog Post Title' becomes 'Blog-Post-Title'. Most URLs are lowercased by convention, but mixed case is available when a system requires it.
How are numbers and existing hyphens treated?
Digits 0 through 9 are kept as-is, so version numbers and years survive. Existing hyphens, spaces and punctuation all collapse into a single separator, meaning a double space or a stray dash never produces an empty gap in the slug.
Does it remove leading and trailing symbols?
Yes. A title that starts or ends with punctuation, like 'Hello, World!', never leaves a dangling separator. Runs at the very start and end are stripped so the slug always begins and ends with a real character.
Is there a length limit?
There is no hard cap unless you set one with Max length. The slug updates instantly as you type, and the character counter next to the field helps you keep it within whatever limit your CMS or platform prefers.
Is my text private?
Yes. The slug is generated entirely in your browser with JavaScript, and nothing you type is uploaded, so unpublished titles and drafts stay on your device.
Learn more
- URL slug best practices for SEO
How to write short, readable slugs that help rankings and users: length, keywords, hyphens over underscores, and the mistakes to avoid.
Related tools
URL Encoder
Encode or decode URLs and query strings online. Percent-encode a value, escape a full URL, or decode back to plain text. Free, fast and private.
Remove Line Breaks
Remove line breaks and paragraph breaks from text online. Flatten copied text into one line, keep spaces tidy, then copy the result. Free and private.
Article Schema Generator
Generate Article, NewsArticle or BlogPosting JSON-LD schema. Add headline, author, publisher and dates, then copy the script into your page.
Breadcrumb Schema Generator
Build BreadcrumbList JSON-LD structured data. Add your breadcrumb trail, reorder the steps, then copy or download the script for your page.
Bulk Hreflang Generator
Generate hreflang annotations for many languages at once. Add language and URL rows, pick HTML, XML sitemap, or HTTP header output. Runs in your browser.
Canonical Tag Checker
Paste page HTML to find every rel=canonical link and catch issues: missing, duplicate, relative or wrong-target canonicals. Runs in your browser.