URL Slug Generator

Turns a title into a clean web address slug in lowercase, with your choice of separator and a maximum length. Use it to create tidy page addresses for blog posts, products and file names, with one slug for each line you enter.

Up to 1 MiB.

Options

Leave off to keep non-Latin scripts such as Chinese or Arabic in the slug.

How to use the URL Slug Generator

  1. Type or paste a title. Each line becomes one slug, shown as you type.
  2. Choose the separator and a maximum length, and whether to replace accented letters, keep only a–z and 0–9, or remove short English words such as the and of.

Rules applied

  • Letters are lowercased. With Replace accented letters on, accents are removed (café becomes cafe) and special letters are spelt out (ß becomes ss); & becomes and.
  • Spaces and punctuation become a single separator; separators are never doubled or left at the ends.
  • Letters from other scripts, such as Chinese or Arabic, are kept unless Remove characters that are not a–z or 0–9 is on.
  • A maximum length cuts at the last whole word that fits.

Limitations

  • Slugs do not check whether a page with that address already exists.

Worked examples

Blog post titles

Input

10 Tips for Better Café Photos!
Why Größe Matters: A Guide

Result

10-tips-for-better-cafe-photos
why-grosse-matters-a-guide
Underscore separator, short slug

Input

The Complete Beginner Guide to Sourdough Bread Baking at Home

Result

the_complete_beginner_guide_to

Practical uses

  • Turning titles into page addresses

    A blogger has a list of post titles to turn into page addresses. They paste one title per line and each becomes a short, lowercase slug with hyphens. The slugs are ready to paste into a content system.

  • Handling accents and symbols

    An editor has titles such as Café & Bar that contain accents and symbols. With Replace accented letters on, the accent is removed and the ampersand becomes and. The result is a clean slug that works as a web address.

  • Limiting slug length

    A developer has long titles that make unwieldy slugs. They set a maximum length, and each slug is cut at the last whole word that fits. The addresses are shorter and still read naturally.

Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.