Skip to content
Text & Writing

Text to URL Slug Generator

A slug is the human-readable part of a URL after the domain — the `text-to-slug` in this page's address. This tool converts a title into one: lowercase, spaces replaced by hyphens, ampersands spelled out as 'and', and every character that would need percent-encoding removed.

Free, no signupRuns entirely in your browser
Input
Result
awesome-vibeland-website-playground
About

What the Text to URL Slug Generator does

Getting slugs right is worth a little care because they are expensive to change. A slug is part of the URL, and changing a published URL costs you the accumulated links and rankings unless you set up a redirect. Shorter is generally better: strip filler words and keep the two or three terms that describe the page.

How it works

Using the Text to URL Slug Generator

  1. 1Paste the title or phrase you want to convert.
  2. 2The text is lowercased, since URLs are conventionally lowercase and some servers treat cases differently.
  3. 3Spaces become hyphens, the separator Google explicitly recommends over underscores.
  4. 4Ampersands are expanded to 'and', then remaining unsafe characters are removed.
  5. 5Repeated hyphens are collapsed to one, and the finished slug is ready to copy.
Use cases

What people use it for

  • Creating a permalink for a new blog post or product page
  • Generating consistent, safe filenames from document titles
  • Building anchor IDs for headings in long documentation pages
  • Batch-normalising imported category names before a site migration
FAQ

Frequently asked questions

6 related

Related tools

All tools →