URL Slug Generator

Turn a page title into a URL slug: lowercase, hyphens, and no punctuation. It updates as you type and stays in your browser.

Slug

The slug will show up here.

Type a title to build one.

How to make a URL slug

  1. Paste the page title. Type the phrase you want in the address, or paste a page URL. A URL uses the last part of the path.
  2. Choose the length. Leave short words in, or turn them off when the slug is long. Set a max length if your site builder has a limit. The cut lands on a hyphen when it can.
  3. Copy the slug. Copy the slug, or add your site address and copy the full URL. The slug is built in your browser.

What the slug keeps

Letters and numbers stay. Accented letters are folded to the closest plain letter, so café becomes cafe. An apostrophe is dropped, so Smith's becomes smiths. An ampersand becomes the word and. Everything else becomes a hyphen, and extra hyphens are collapsed. The result is lowercase.

Short words you can remove are a, an, the, and, or, of, for, to, in, on, at, by, with, and from. They are only removed when you turn that option on.

After you publish the address

If you are rewriting an old query-string URL, the URL rewrite generator writes the Apache and nginx rules. The title and description that sit next to the slug belong in the meta tag generator. A link you share in a campaign, with its own tracking parameters, belongs in the UTM builder, not in the slug.

Questions

What is a URL slug?

The slug is the part of the address that names the page, after the domain. In example.com/emergency-plumber, the slug is emergency-plumber.

Should a slug use hyphens or underscores?

Use hyphens. Google's URL guidance says hyphens help people and search engines read the words, and it recommends hyphens rather than underscores. This generator uses hyphens.

Should I remove short words from a slug?

You can. A shorter slug is easier to read and to share. Leave a word in when taking it out would change the meaning. The option removes a, an, the, and, or, of, for, to, in, on, at, by, with, and from.

Will a new slug hurt a page that already ranks?

Changing a URL that other sites link to can drop that page until the old address redirects to the new one. If the page already has links, add a 301 from the old URL and keep one address as the canonical.

Does this send my title to a server?

No. The slug is built in your browser. Nothing you type is uploaded.

More free tools

See all tools