How to use the slug generator
- 1 Paste one or more titles into the Your text box.
- 2 Choose the separator and an optional max length.
- 3 Tick options such as Remove short words.
- 4 Copy the slugs.
What makes a good URL slug
- Short and readable: 3 to 6 words that describe the page, such as compress-pdf-to-100kb.
- Hyphens, not underscores: Google treats hyphens as word separators, and underscores join words together.
- Lower case only: some servers treat /Page and /page as different addresses, which creates duplicates.
- No dates or filler unless they matter, so the URL never looks out of date.
Accented letters are turned into plain ones (é becomes e). Once a page is live, avoid changing its slug; if you must, redirect the old address. Writing the page title too? The Title Case Converter capitalises it and the Character Counter keeps it under 60 characters.
Features
SEO-friendly
Lowercase words joined with hyphens, the format search engines prefer.
Accents removed
Café becomes cafe, and & becomes and.
Bulk slugs
One slug per line for a whole list of titles.
Length limit
Shorten long slugs without cutting words in half.
When to use it
Blog posts
Create clean URLs for articles. Capitalise the page title with the Title Case Converter.
Online shops
Make product URLs from product names. Keep the title short with the Character Counter.
Developers
Generate IDs and file names from text. Need snake_case for code? Use the Case Converter.
Content migration
Convert a list of titles into URLs. Check your keywords with the Keyword Density Checker.
Related Text tasks
Frequently asked questions
What is a URL slug?
The readable part at the end of a web address that names the page, such as remove-duplicate-lines in a URL.
Should I use hyphens or underscores?
Hyphens. Google treats hyphens as spaces between words, while underscores join words together.
Should I remove words like the and and?
Short slugs are easier to read and share, so removing filler words can help, but keep the slug meaningful.
How long should a slug be?
Short and descriptive is best, usually three to six words. Use Max length to cap it.
Does it work with other languages?
Accented letters are converted to plain letters. Letters from other alphabets, such as Arabic or Cyrillic, are kept as they are, because modern browsers support them in URLs.
Can I use underscores for file names?
Yes. Choose Underscore as the separator, which is common for file names and database fields.
Can I convert many titles at once?
Yes. Put one title per line and each line becomes its own slug.
Should I change the slug of a page that is already live?
Only if you must. Changing it breaks old links, so set up a 301 redirect from the old address to the new one.
Can I use underscores or dots instead of hyphens?
Yes. Choose the separator you need. Use hyphens for web pages; underscores and dots are useful for file names and code.
Can I limit the length of the slug?
Yes. Set a maximum length and the slug is cut at a word boundary, so it never ends halfway through a word.
How this tool works. These text tools run entirely in your browser with plain JavaScript, so the text you paste never leaves your device and results update as you type. Each tool is tested with real text such as copied PDFs, emails, code, lists, emojis and non-English scripts before it goes live.
Built and reviewed by Hamza Farooq, founder and lead developer
· Last updated
· How we check our tools
· Report a problem