Text & Data Tools009

Slugify Text: URL Slug Generator

Turn any title into a clean, readable URL slug, one at a time or a whole list at once.

Mode
Separator
Case

Type or paste text to start

Processed locally · 0 bytes sent

How to turn a title into a URL slug

  1. Type or paste a title, heading or file name into the Input box.
  2. Choose Single slug for one piece of text, or One per line to convert a list: each line becomes its own slug, and blank lines stay blank so the rows line up.
  3. Pick a hyphen or underscore separator, and untick Lowercase if you need to keep the original capitals.
  4. Copy the result, or download it as slugs.txt.

Why use this tool

  • Blog posts and CMS pages

    WordPress, Ghost, Shopify and most other CMSs build a URL from the title, but the automatic slug is often long or keeps characters you would rather not have in a link. Write a short, readable slug here and paste it into the slug or permalink field.

  • File and folder names

    Lowercase names made of ASCII letters, digits and hyphens behave the same on Windows, macOS and Linux, and need no escaping in a shell or a URL. That makes them a safe choice for images, downloads and static-site content folders.

  • Anchor links and CSS classes

    Turn section headings into id attributes for in-page links such as #getting-started, or turn labels into class names, with the same rules applied every time.

  • Bulk migrations

    Moving a catalogue or a blog? Paste a column of product names or article titles in One per line mode and get a matching column of slugs for your spreadsheet, import file or redirect map.

Private by design

The text you paste or type is processed in this browser tab. It is never uploaded or stored, so you can clean up internal documents or customer data without it leaving your device. No account needed.

Good to know

How a slug is built

  • The text is Unicode-normalised (NFKD). That splits an accented letter into its base letter plus an accent mark and expands compatibility characters such as the fi ligature. The accent marks are then removed, so é becomes e and Ü becomes U.
  • Apostrophes are deleted, so a contraction stays one word: Don't Panic becomes dont-panic.
  • A fixed list of Latin letters that do not decompose is transliterated: ß to ss, æ to ae, ø to o, œ to oe, đ and ð to d, ł to l, Turkish ı to i, þ to th, ħ to h, ŋ to n, ĸ to k and ŧ to t.
  • Every run of anything else (spaces, punctuation, symbols, emoji) becomes one separator, and separators at the start and end are trimmed.
  • Finally the slug is lowercased, unless you untick Lowercase.

Limits. Only the letters A to Z and the digits 0 to 9 survive these steps; anything else is removed. Cyrillic, Greek, Arabic, Chinese and other scripts are not transliterated, so they are removed; write a Latin version first. Symbols carry no meaning either: C++ and C# both shrink to c, so spell them out (cpp, csharp) before slugifying. In One per line mode every input line gives one output line: a blank line, or a line with no Latin letters or digits, gives an empty line, so the output stays aligned row for row with your list.

Hyphen or underscore? Google's URL guidelines recommend hyphens rather than underscores to separate words in URLs. Underscores suit identifiers, database values and file names in projects that already use them.

Example

In — Three post titles, One per line mode

Crème Brûlée: 5 Easy Steps
Why Straße Names Matter (2026)
C++ vs. C# — A Quick Guide

Out — Slugs

creme-brulee-5-easy-steps
why-strasse-names-matter-2026
c-vs-c-a-quick-guide

Frequently asked questions

What is a URL slug?

The slug is the part of a URL that names one specific page in readable words. In toolcraftweb.com/remove-line-breaks-online/, the slug is remove-line-breaks-online.

Should I use hyphens or underscores in URLs?

Hyphens. Google recommends them over underscores for separating words in URLs, and they are the convention on most of the web. Keep underscores for identifiers and file names where your project already uses them.

Should I remove words like "a", "the" and "of"?

Often, because it makes the slug shorter and easier to read. It is an editorial call, though: keep them when removing them changes the meaning or reads oddly. This tool never drops words on its own, so you stay in control.

What happens to accented and non-English characters?

Accents are stripped (ação becomes acao, Über becomes uber) and a few special letters are transliterated, such as ß to ss and ø to o. Letters from non-Latin scripts are removed, so write a Latin transliteration before converting.

Is it safe to change the slug of a published page?

Changing the slug changes the page address, so old links and bookmarks will break. If the page is already live, set up a permanent (301) redirect from the old URL to the new one.