Skip to content

Text Tools

Slug Generator

Strips special characters and spaces, converting to lowercase with your choice of hyphen or underscore separator.

  • Free
  • No sign-up
  • Runs in your browser

Guide

What a URL slug is

A slug is the readable part of a web address that identifies a specific page, usually derived from its title. In an address like /blog/best-coffee-shops, the final piece, "best-coffee-shops", is the slug. Good slugs are short, lowercase, and made of plain letters, numbers, and a separator, because spaces and symbols are either not allowed in URLs or have to be encoded into ugly sequences.

This tool follows a simple recipe. It removes accents from letters (so "cafe" with an accent becomes "cafe"), deletes any character that is not a letter, digit, space, or hyphen, trims the ends, and then turns each run of spaces and hyphens into one separator. For the starting example, "10 Best Coffee Shops in San Francisco (2026 Guide)!" becomes "10-best-coffee-shops-in-san-francisco-2026-guide".

Why clean slugs are worth the effort

A readable slug tells visitors and search engines what a page is about before they open it, and it looks tidy when shared in a message. Stable, plain addresses are also easier to type, link, and copy without breaking. Content management systems, static site generators, and file naming schemes all benefit from consistent, predictable slugs.

Teams use slugs for blog posts, product pages, category names, documentation sections, image file names, and identifiers in code. Once a page is live, avoid changing its slug without setting up a redirect, since links pointing to the old address will otherwise break. When you need to embed arbitrary text into a URL query rather than a path, use the URL Encoder instead.

How to create a slug with this tool

  1. Type or paste your title into the Title or text box. It starts with a sample headline.
  2. Choose the separator: the hyphen button or the underscore button. Hyphen is selected by default.
  3. Leave lowercase ticked for all-lowercase output, or untick it to keep the original capitalization.
  4. Read the result in the Slug box, which updates as you type.
  5. Click Copy to copy the slug.

There is no download, and the conversion runs in your browser without sending your title anywhere.

Limits and things to check

The tool keeps only the basic Latin letters A to Z and digits. Accents are stripped, but letters from other writing systems, such as Cyrillic, Greek, Arabic, or Chinese, are removed entirely, so a title written fully in one of those scripts produces an empty slug. Letters without a plain equivalent, like the German eszett, are also dropped rather than transliterated.

Existing underscores in your input are removed as symbols before the separator is applied. Apostrophes and other punctuation are deleted, so "Don't" becomes "dont". Leading or trailing punctuation can leave a separator at an end: a title that begins with a dash, for example, may produce a slug starting with a hyphen, so glance at the result before using it.

There is no length limit or removal of common words like "the" and "and". If you want a shorter slug, trim the title yourself first. For related cleanup of capitalization before slugging, try the Case Converter.

Frequently asked questions

Should I use hyphens or underscores?

Hyphens are the more common choice for URLs and are the default here. Underscores are available for file names, identifiers, or systems that expect them.

What happens to accented letters?

Accents are removed, so an accented e becomes a plain e. Characters with no plain Latin equivalent, including letters in non-Latin scripts, are dropped.

Can I keep capital letters?

Yes. Untick the lowercase option and the slug keeps the capitalization from your title. Lowercase is generally safer for URLs.

Is my title stored or uploaded?

No. The slug is built in your browser as you type, and the tool has no step that sends your text to a server.