Home / Text tools / URL Slug Generator
URL Slug Generator
A good slug is lowercase, free of accents and punctuation, and short enough to read in a search result. Type a headline and get a slug you can paste straight into a CMS.
How to use it
- Type or paste the title.
- Choose a hyphen or an underscore as the separator.
- Set a maximum length; the slug is cut at a word boundary, never mid-word.
Examples
- Cómo criar un gato — guía 2026! → como-criar-un-gato-guia-2026.
- 10 Tips & Tricks for Faster CSS → 10-tips-tricks-for-faster-css.
- Setting the limit to 30 trims the tail cleanly rather than cutting a word in half.
Questions people ask
Hyphens or underscores?
Hyphens. Search engines treat a hyphen as a word separator and an underscore as a joiner, so tips_and_tricks can be read as one long token. Underscores remain available here for file names, where they are conventional.
Should the slug match the page title exactly?
It does not need to. Trimming filler words keeps it readable and still relevant. What matters far more is that a slug never changes once it is published, because every change breaks existing links unless you set up a redirect.
Related tools
Updated: 2026-08-07