Skip to content

Slug Generator

Turn titles into clean, SEO-friendly URL slugs.

Runs in your browser · free · no sign-up

Input
Result

About the Slug Generator

A good slug is short, readable and only uses lowercase letters, numbers and dashes. Paste a blog title or product name and get a slug that is ready to use in your URL.

A slug is the part of a URL that identifies a page in readable words, such as /blog/how-to-compress-images. Good slugs help visitors understand a link before clicking and give search engines a small relevance signal. Bad slugs contain spaces, capital letters, accents or symbols that get encoded into ugly %20 sequences.

This generator turns titles into clean slugs: it converts accented letters to plain ones, lowercases the text, removes punctuation and joins words with dashes or underscores. You can remove short filler words such as a, the and of, and set a maximum length so long titles become concise URLs. Paste one title per line to create slugs for a whole list of posts or products at once.

How to use the Slug Generator

  1. 1Type or paste a title (one per line for many).
  2. 2Choose the separator.
  3. 3Copy the slug.

Key features

  • Converts accents such as é and ü to plain letters.
  • Dash or underscore separator.
  • Optional lowercase.
  • Remove short filler words.
  • Maximum length option and one slug per line.

Practical uses

  • Creating URLs for blog posts in WordPress or a headless CMS.
  • Preparing product URLs for an online store import.
  • Naming files and folders consistently.
  • Generating anchor IDs for headings.

Example

The title “10 Best Cafés in Lahore for Working Remotely!” becomes 10-best-cafes-in-lahore-for-working-remotely. With short words removed it becomes 10-best-cafes-lahore-working-remotely.

Tips and common mistakes

  • Do not change the slug of a published page without adding a 301 redirect from the old URL.
  • Remove dates from slugs of evergreen articles so they do not look outdated.
  • Keep the main keyword near the start.
  • Use the max length option for very long titles; it cuts at a word boundary so no word is chopped in half.

Limitations

  • Letters from other scripts, such as Urdu, are kept as they are; browsers show them, but copied links turn them into long %XX codes, so many sites prefer an English slug.
  • The tool does not check whether a slug is already used on your site.

Privacy

Slugs are created in your browser and nothing is sent to a server.

Frequently asked questions

Why remove accents?

Letters like é or ü are converted to e and u so the URL works everywhere and is easy to type.

Dash or underscore?

Google recommends dashes (-) to separate words in URLs.

How long should a slug be?

Keep it short and descriptive, usually 3 to 6 words.

Should slugs be lowercase?

Yes. Some servers treat /Page and /page as different URLs, so lowercase avoids duplicates.

What happens to the & sign?

It is turned into the word “and”, so “Salt & Pepper” becomes salt-and-pepper.

Can I keep capital letters?

Yes. Untick lowercase, although lowercase slugs are the safer choice.

Related tools

Word CounterCount words, characters, sentences and reading time.
Case ConverterUPPER, lower, Title, Sentence, camelCase and more.
Remove Duplicate LinesDelete repeated lines from a list.
Text SorterSort lines A–Z, Z–A, by length or randomly.