Free online tools
English EN, Choose a language

Text to slug

Paste a title and get a clean, lowercase URL slug: accents removed, punctuation gone, words joined by hyphens.

Separator

Cut at a whole word. Search engines show about 60 characters of a URL.

Result

Paste a title, or several (one per line). The slugs appear here.

Runs in your browser. Your text is never uploaded or stored.

Related tools

All text tools →

How to turn text into a slug

  1. Paste a title, or a list with one title per line. Insert example loads three titles.
  2. Pick the separator. Hyphens are the standard for URLs and what Google recommends in its URL guidelines.
  3. Optionally remove stop words, set a maximum length or switch on German-style umlauts.
  4. Copy the slugs and paste them into the permalink, file name or route of your site.

What a slug is, and what the tool does to your text

A slug is the readable last part of a URL: in example.com/blog/best-cafes-in-sao-paulo it is best-cafes-in-sao-paulo. To make one from The 10 Best Café Spots in São Paulo (2026 Guide) the tool:

  1. transliterates accented and special letters (é → e, ã → a, ß → ss, ø → o, Cyrillic to Latin);
  2. drops apostrophes so what's becomes whats rather than what-s;
  3. turns every run of other characters (spaces, punctuation, brackets, dashes) into one separator;
  4. lowercases the result and trims separators from both ends.

Result: the-10-best-cafe-spots-in-sao-paulo-2026-guide.

Separators, stop words and length

The same title with different settings:

SettingSlug
Hyphen (default)the-10-best-cafe-spots-in-sao-paulo-2026-guide
Underscorethe_10_best_cafe_spots_in_sao_paulo_2026_guide
Stop words removed10-best-cafe-spots-sao-paulo-2026-guide
Stop words removed, maximum 24 characters10-best-cafe-spots-sao

Hyphens are read as word separators by search engines; underscores join words into one. That is why hyphens are the default for web addresses, while underscores are common in file names and database keys. Stop words (a, an, the, and, or, of, to, in, on, for, with) make slugs shorter, but a short slug still has to make sense: if removing them would leave nothing, the tool keeps them. A maximum length cuts at a whole word, never in the middle of one.

Accents, German umlauts and other alphabets

Most accents are removed by Unicode decomposition (é → e). Some letters are not accented versions of another, so the tool has its own rules: ß → ss, æ → ae, œ → oe, ø → o, ł → l, đ → d, þ → th. German usage writes ä, ö, ü as ae, oe, ue; tick that option to get it. Über uns – Größe & Preise becomes uber-uns-grosse-and-preise by default and ueber-uns-groesse-and-preise with German style.

Cyrillic is transliterated, so Привет, мир! Hello becomes privet-mir-hello. Scripts without a simple Latin equivalent, such as Chinese, Japanese, Korean, Arabic and Hebrew, are left out and the tool tells you how many letters were dropped. For those languages many sites keep the native characters in the URL; this tool would produce an empty slug.

Good slug habits

For code identifiers (camelCase, snake_case, kebab-case) use the case converter. Writing the title first? The title case converter capitalizes headlines properly, and find and replace fixes patterns in a batch of slugs.

Where slugs are used

Content management systems call it the slug or permalink: WordPress builds one from the post title, and you can edit it before publishing. Static-site generators such as Hugo and Jekyll use it for the file name or a front-matter field. Online shops use it for product and collection handles, and routers in web apps use it as a path parameter. In every case, treat the slug as permanent once the page is published. If you must change it, add a redirect from the old address so links and search rankings carry over.

The slug is also a ranking and click signal in a small way: a readable address tells people what the page is before they open it, which is why /best-cafes-in-sao-paulo beats /post?id=4821.

Related tools

Text to slug FAQ

What is a slug?

A slug is the readable part of a URL that names a page, for example best-cafes-in-sao-paulo in example.com/blog/best-cafes-in-sao-paulo. It uses lowercase letters, digits and hyphens.

How do I convert a title to a slug?

Paste the title, pick a separator and copy the result. The tool lowercases the text, removes accents and punctuation and joins the words with hyphens.

Should I use hyphens or underscores in a URL?

Hyphens. Search engines treat a hyphen as a word separator, while an underscore joins the words together. Underscores suit file names and database keys.

What happens to accents like é and ß?

Accents are stripped (é becomes e) and special letters get a standard replacement (ß becomes ss, ø becomes o). Tick German style to turn ä, ö and ü into ae, oe and ue.

Does it work for Chinese, Arabic or other scripts?

Cyrillic is transliterated to Latin letters. Scripts without a simple Latin equivalent are left out, and the tool shows how many letters were dropped.

Can I create many slugs at once?

Yes. Put one title on each line and you get one slug per line.

Is my text uploaded anywhere?

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

Missing something in the text to slug?Suggest an idea. It takes 20 seconds and we read every one.Suggest an idea

Sends only what you type here, never the text you work with. Your email is used only to reply about this idea.

Free online tools