Slug Generator

Turn titles into clean, URL-safe slugs (accents removed).

characters

Result

hello-world-creme-brulee-and-cafe
how-to-build-a-fast-website-in-10-minutes
2 lines · 75 bytes

What is a slug?

A slug is the readable last part of a web address that identifies a page, such as how-to-build-a-fast-website in a blog post link. A good slug uses lowercase letters, digits and a single separator, and leaves out spaces, accents and punctuation that must be escaped in a URL.

This tool converts a title into a slug. Accents are removed, so crème brûlée becomes creme-brulee. The ampersand becomes "and", and punctuation turns into separators. You can pick a hyphen, underscore or dot, keep capitals if you like, and cut long slugs at a word boundary. Put one title on each line to convert many at once.

How to use the Slug Generator

  1. Type or paste your titles, one per line.
  2. Choose the separator and whether to keep capitals.
  3. Set a maximum length if you need one.
  4. Copy the slugs.

Real situations

When people use the Slug Generator

  • 1

    Create URLs for posts and pages

    Turn an article title into a clean address before you publish it.

  • 2

    Name files and folders

    Make safe file names from titles that contain spaces, accents or symbols.

  • 3

    Bulk-convert titles for a migration

    Paste a whole list of titles and get a slug for each in one go.

  • 4

    Make IDs for anchors and keys

    Create short identifiers for headings, categories or database records from their names.

FAQ

Slug Generator: questions answered

What does the sample become?

"Hello, World! Crème brûlée & Café" becomes hello-world-creme-brulee-and-cafe. The second title, "How to Build a Fast Website in 10 Minutes", becomes how-to-build-a-fast-website-in-10-minutes.

Why use hyphens rather than underscores?

Hyphens are the usual choice for web addresses because search engines treat them as word separators. Underscores are common in file names and code. The tool lets you pick either, or a dot.

How does the maximum length work?

Set a number of characters and the slug is cut at a word boundary so no word is chopped in half. With a limit of 20, the first sample title becomes hello-world-creme. Set it to 0 for no limit.

What happens to accents and symbols?

Accents are removed (é becomes e), the ampersand becomes "and" and other punctuation becomes separators, with repeated separators merged. Letters from scripts such as Chinese are dropped rather than translated, so a title written only in them gives an empty slug.

Does it keep capital letters?

By default everything is lowercase. Choose "Keep case" to leave capitals as typed. Lowercase is usually safer, because some servers treat upper and lower case URLs as different pages.

Should I change a slug after publishing?

Be careful. Changing the address of a live page breaks old links unless you redirect the old address to the new one. Choose a good slug before you publish.

Is this Slug Generator free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way