Text to Slug Converter

Convert a headline into a clean, lowercase, hyphenated URL slug with accents normalised and punctuation stripped.

51Slug length
11Words in slug

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Text to Slug Converter does

This text to slug converter will convert a headline into a clean, lowercase, hyphenated URL slug with accents normalised and punctuation stripped. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for generating a permalink from a post title in your CMS. If you need the other side of this job, there is also a find and replace text tool.

How to use it

  1. Paste your page title, one per line for several at once.
  2. Pick a separator — hyphens are the standard for URLs.
  3. Optionally drop common words or cap the length.
  4. Copy the slug into your CMS.

How it works

A slug is the human-readable part of a URL. Good slugs are lowercase, use hyphens between words, contain no punctuation or accents, and are short enough to read at a glance.

Accented characters are normalised to their base letters before stripping, so "Café" becomes "cafe" rather than "caf". Everything that is not a letter, digit or separator becomes a separator, and runs of separators are collapsed into one with none left at either end.

Hyphens are the right separator. Search engines treat a hyphen as a word boundary; underscores historically were not treated that way, and the convention has stuck. Removing stop words can tighten a long slug, but do not strip so much that the slug stops making sense to a human reading it in a link.

When to use it

  • Generating a permalink from a post title in your CMS.
  • Creating consistent file names from document titles.
  • Converting a batch of exported titles into URL paths.

Common mistakes to avoid

  • Changing the slug of a page that is already published and indexed without setting up a 301 redirect from the old URL.
  • Stuffing keywords into a slug until it is unreadable — length past about five or six words adds nothing.
  • Using underscores, which are not reliably treated as word separators.

Frequently asked questions

Should I remove stop words from slugs?

Only when they make the slug unnecessarily long. The SEO benefit is negligible, and removing them can make a slug read oddly. "how-to-make-cold-brew" is better than "make-cold-brew" even though it is longer.

How long should a slug be?

Short enough to read in a search result, which in practice means roughly three to six words. There is no penalty for a longer one, but it gets truncated in display and is harder to share verbally.

Can I change a slug after publishing?

You can, but set up a 301 redirect from the old URL at the same time. Without one you lose any accumulated links and the page has to be re-indexed from scratch.

Related tools

See all text & writing tools →