What is a URL slug?
A slug is the readable part at the end of a web address that identifies a page, such as best-budget-laptops in example.com/blog/best-budget-laptops. Content management systems like WordPress, Shopify and Ghost generate one from the title, but they often keep stop words, odd punctuation or accented characters that turn into percent codes.
A slug generator makes them consistently: lowercase, words separated by hyphens, accents removed and symbols stripped. Developers also use slugs for file names, anchor IDs and database keys. This tool converts a whole list of titles at once, which helps when migrating a blog or importing products.
How to use the URL Slug Generator
1.Paste titles
One per line, as many as you like.
2.Pick the style
Hyphens or underscores, lowercase, optional stop-word removal and a maximum length.
3.Copy the slugs
Each line of the output matches the title on the same line.
Example: three post titles
With the defaults (hyphens, lowercase, no length limit):
- 10 Tips for Writing Better Blog Posts!
- 10-tips-for-writing-better-blog-posts
- Café & Crème Brûlée: A Guide
- cafe-and-creme-brulee-a-guide
- What’s New in 2026?
- whats-new-in-2026
Accents, the ampersand, the apostrophe and the punctuation are all handled without manual editing.
What makes a good slug
Google recommends readable words in URLs and hyphens rather than underscores to separate them, so hyphens are the default. Accented letters are converted to their plain forms (é to e, ß to ss), ampersands become "and", apostrophes are dropped so "what's" becomes "whats", and everything else that isn't a letter or digit becomes a separator.
Dropping stop words shortens slugs like a-guide-to-the-best-cafes, though the first word is always kept. With a maximum length, the slug is cut at the last whole word that fits rather than mid-word.
Frequently asked questions
Should I use hyphens or underscores?
Hyphens. Search engines treat a hyphen as a word separator, while underscores can join words together.
How long should a slug be?
Short enough to read at a glance: three to six words, or under about 60 characters, is a common guideline.
Does it handle non-English titles?
Accented Latin letters are converted. Letters from other scripts, such as Hindi or Cyrillic, are kept as they are, which browsers support.
Should I change a published post's slug?
Only with a 301 redirect from the old URL, or existing links and rankings will break.
Related tools
Case Converter
UPPER, lower, Title, Sentence, camelCase, snake_case and more.
URL Encoder & Decoder
Percent-encode or decode URLs and query values, and see a URL's parts.
URL Parser
Break a URL into protocol, host, port, path, query and fragment.
Regex Tester
Test JavaScript regular expressions with live highlighting, groups and replace.
Text Diff Checker
Compare two texts by line, word or character and see what changed.
Cron Expression Explainer
Translate a cron schedule into plain English and see its next run times.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator