Skip to main content
Tools

Slug Generator

Turn titles into URL slugs: strip accents, choose the separator and maximum length, and keep or drop Chinese characters.

Separator
Chinese and other non-Latin text

Keeps Chinese, Japanese, Cyrillic and other letters. Browsers show them in the address bar but send them percent-encoded, like %E4%B8%AD.

characters

Leave empty for no limit. Cuts between words.

0 characters · 1 line

How to use

  1. Type your titles into “Titles”, one per line, to convert many at once, or click “Example”.
  2. Choose a separator, and whether to keep Chinese characters or use ASCII only.
  3. Set a maximum length or remove English stop words for shorter URLs if needed.
  4. The slugs appear instantly on the right (below on phones). Click “Copy” to grab them.

FAQ

Is my data uploaded?

No. Everything is converted in your browser.

Can it turn Chinese titles into pinyin?

No. Correct pinyin needs a large dictionary and handling of characters with several readings, which this tool does not include. You can keep the Chinese characters (they are percent-encoded in URLs, but most browsers and search engines show them normally) or choose “ASCII only” and add English keywords yourself.

Should I use Chinese characters in URLs?

It works, and Google indexes such URLs fine. But when the URL is pasted into some apps or emails it turns into long %E4%B8%AD-style codes that are hard to read. For URLs that are shared a lot, an English slug may be friendlier.

How are accents handled?

Text is normalized with Unicode NFKD, which splits é into e plus an accent, and the accents are removed, so Crème brûlée becomes creme-brulee. Letters that do not decompose, such as ß, æ, ø and ł, become ss, ae, o and l. Full-width letters and digits (A1) become ASCII too.

How is the maximum length counted?

In characters, including separators; a Chinese character counts as one. Slugs are cut between words, never in the middle of one, unless the first word alone is longer than the limit.

Which stop words are removed?

Common English function words and pronouns such as a, an, the, and, or, of, to, in, on, for and with. If a title is made only of stop words, they are kept so the slug is not empty.

Keyboard shortcuts

/
Search tools (on a tool page, goes to the homepage search)
?
Show this help
Esc
Close a dialog
Ctrl / ⌘Enter
Run the tool's main action (where supported)

While you type in a text field, / and ? are typed as usual.