Slugify string

Make a string url, filename and id safe.

About Slugify string

Turns any text into a slug: lowercase ASCII letters and digits separated by hyphens, safe to use in a URL, a file name or an HTML id. Accented letters are transliterated and symbols are removed or spelled out.

When you would use it

How to use it

  1. Paste the text, a title for example.
  2. Read the slug below; it updates as you type.
  3. Copy it.

Things worth knowing

Frequently asked questions

Why is a slug better than the raw title in a URL?
It avoids percent-encoding, is readable, stable across systems that mishandle Unicode, and is what search engines and users expect. Hyphens are preferred to underscores because search engines treat them as word separators.
Why did my Chinese title produce nothing?
The library only transliterates Latin-based characters. For other scripts, translate or romanise the title (for example with pinyin) before slugifying.

All the tools