Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

URL Slug Generator

Turn titles and headings into clean, readable URL slugs.

Separator
Use via API

Turn a title into a URL slug. Send JSON, get JSON back.

POST https://pithlab.com/api/v1/tools/slug-generator

curl https://pithlab.com/api/v1/tools/slug-generator \
  -H "Authorization: Bearer $PITHLAB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"Crème Brûlée: 10 Tips & Tricks!"}'

Fields and responseOpenAPI documentGet an API key

About the Slug Generator

Turn titles into clean URL slugs. Converts accented letters to plain ASCII, removes stop words, limits length on a word boundary and works in bulk, one per line.

How to use the Slug Generator

  1. Type or paste a title. For bulk use, put one title on each line and you get one slug per line.
  2. Choose a hyphen or underscore separator, and whether to force lowercase.
  3. Optionally remove common English stop words such as the, and, of.
  4. Set a maximum length if you need one. Slugs are cut at a word boundary, never mid-word.
  5. Copy the result or download it as a text file.

Examples

Blog post title

Input

10 Tips for Writing Better Code!

Output

10-tips-for-writing-better-code
Accented and special letters

Input

Crème Brûlée & Smørrebrød in Łódź

Output

creme-brulee-and-smorrebrod-in-lodz
German sharp s

Input

Straße für Größen

Output

strasse-fur-grossen

Frequently asked questions

What makes a good URL slug?

Short, lowercase, readable words separated by hyphens. Google treats hyphens as word separators, so they are the usual choice. Avoid dates or IDs unless they matter, because a slug should not need to change later.

How are accented letters handled?

Accents are removed using Unicode NFKD decomposition, so é becomes e and ñ becomes n. Letters that have no accent to strip use a fixed mapping: ß becomes ss, æ becomes ae, ø becomes o and ł becomes l.

What happens to emoji and other scripts?

Anything that is not a Latin letter or digit, including emoji, punctuation and scripts such as Cyrillic or Chinese, is treated as a separator and dropped. Repeated separators are collapsed into one.

Should I remove stop words?

It is optional. Removing words like the and of gives shorter slugs, but can change meaning, so check the result. If every word is a stop word, the words are kept.

Is my text sent anywhere?

No. The slugs are made in your browser and nothing you type is uploaded.