Why slugs matter
The slug is the human-readable part of a URL — and it's a ranking signal and a UX signal: /my-awesome-blog-post tells both Google and readers what the page is about, while /p/12345 tells nothing. Good slugs are lowercase, hyphen-separated, and drop stop words (a, the, and) when it makes them shorter without losing meaning.
What this tool does
- Normalizes: trims, lowercases, replaces spaces with the separator of your choice.
- Strips punctuation:
!!,(), quotes and other URL-hostile characters go away. - Handles Unicode: accented Latin letters are transliterated (
café→cafe); CJK and emoji are dropped (URLs don't do them well). - Optional length cap: cut long titles at a word boundary so slugs stay readable.
Slug best practices
- Keep it under 60 characters — Google truncates longer slugs in results.
- Use hyphens (Google reads them as word separators; underscores are treated as part of a word).
- Don't include dates unless your site structure requires it — evergreen content with dates looks stale.
- Changing a slug after publishing breaks links — set it once, right.
What happens in the page
Four steps, in order: normalize('NFD') decomposes accented characters into a base letter plus a combining mark, a regular expression strips the combining marks in the U+0300–U+036F range so café becomes cafe, the string is lowercased, and everything that is not a letter, digit, space or hyphen is removed. Runs of spaces and hyphens collapse into a single hyphen, and leading or trailing hyphens are trimmed.
Where it breaks down
Latin-script accents only. Chinese, Japanese and Cyrillic are deleted outright, because NFD decomposition does not apply to them — a Chinese slug needs transliteration, which this tool does not do. Uniqueness is not checked: the page knows nothing about your existing URLs. Length is not truncated, so a long title produces a long slug that most CMSs will cut at around 200 characters.
Privacy: no data leaves this tab
The title is transformed with string operations in this tab; nothing is stored and no request is made, so unpublished product names stay private.
Frequently asked questions
What happens to a Chinese title?
The Chinese characters are removed and only Latin letters and digits survive. Transliterate to pinyin first if you need a readable slug.
Why did café become cafe?
Because accents are decomposed and then stripped, leaving the base letter. That is what NFD normalisation is for.
Does it check for duplicates?
No. It has no knowledge of your site, so collisions must be checked before publishing.