Online slugify tool: turn any title into a URL-friendly slug with automatic Chinese-to-pinyin conversion, separator and case options. Perfect for blog post URLs and SEO-friendly links. Runs locally in your browser.
TL;DR: Slug generator: turn any title into a URL-friendly slug with automatic Chinese-to-pinyin, configurable separator and case.
For local tools, open DevTools → Network and search your input — it should not appear in requests.
Usage Guide
URLs, filenames and anchor links cannot contain spaces or CJK characters — you need to turn "Hello World! 你好世界" into something like hello-world-ni-hao-shi-jie. This tool offers multiple delimiters, case options and Chinese-to-pinyin conversion, all local. Conversion stays local; titles are not uploaded.
1. How to use
- Paste your title or text into the input area.
- Choose a delimiter (hyphen -, underscore _, dot .), toggle case mode and enable Chinese-to-pinyin if needed.
- The slug appears in real time below — copy it directly.
2. Settings for different use cases
- URL paths should use hyphens — search engines treat hyphens as word-separation signals.
- Filenames and variable names usually use underscores — some systems treat - as a minus sign.
- Enable Chinese-to-pinyin when you want to preserve pronunciation; otherwise stripping CJK is cleaner.
- Lowercase is the common slug convention — mixed-case slugs cause inconsistencies across servers.
3. Do not confuse with slug-generator
This tool (slugify) is more feature-rich: Chinese-to-pinyin, multiple delimiters, case control — ideal for generating URL slugs or filenames from titles. slug-generator is a lightweight alternative focused on standard URL slug rules. For pure ASCII English input the output is nearly identical; pick slugify when you need Chinese processing.
4. Pinyin and polyphonic edges
Chinese-to-pinyin maps character by character; polyphonic characters get the lexicon default and cannot disambiguate context like bank vs walk. For important section names, lock the pinyin by hand, then use this page to strip punctuation and unify delimiters. English brand tokens (iOS, GitHub) may be lowercased — edit locally if the URL must keep brand case.
5. Stability and redirects
- Once a slug is in backlinks and search indexes, changing it is expensive — double-check before launch.
- When a title tweak changes the slug, 301 the old URL to the new one instead of silent 404s.
- Keep one delimiter and lowercase policy per site so /Hello-World and /hello_world do not both exist.
6. How this splits work with case-converter
case-converter handles programming identifier styles (camel/snake/kebab); slugify turns human titles into URL/filename slugs. Titles with spaces, punctuation, or Chinese belong here; already-identifier renames belong in case-converter. Both can emit kebab-case, but their input assumptions differ.
7. Options and implementation bounds
Separators are hyphen, underscore, or dot; lowercase is on by default. With CJK and pinyin enabled, the pinyin dictionary loads lazily — pure ASCII never pays that cost. Polyphonic characters get lexicon defaults. Quote characters are removed; runs of punctuation collapse to one separator. Skim version tokens after generate.
FAQ
Neither. The page works the moment it opens: title-to-slug conversion runs on your own machine, and nothing you paste gets uploaded.
Hyphens for URL paths — search engines treat them as word separators. Underscores suit filenames and variable names, since some systems read - as a minus sign. All-lowercase is the prevailing slug convention and avoids case mismatches between servers.
Optional Chinese-to-pinyin is supported, mapped character by character. Polyphonic characters take the lexicon default — the tool cannot tell the 行 in 银行 from the 行 in 行走. Finalize the pinyin of important section names by hand, then use this page to clean punctuation and delimiters. The dictionary loads on demand, so pure English input never pulls it in.
Quote characters are deleted (don't becomes dont); runs of punctuation and whitespace collapse into one separator; emoji and full-width spaces get cleaned or replaced. Scan the result for meaningful fragments that were eaten, such as the v2 in a version string. Proper nouns like iOS and GitHub get lowercased — restore brand casing by hand where the URL needs it.
slugify handles title to URL/filename with pinyin, multiple separators, and case control. slug-generator is the lightweight one focused on standard URL slug rules; on pure ASCII input the two produce nearly identical results. case-converter switches programming identifier styles (camel/snake/kebab) — use it when the input is already an identifier and you only want a different naming style.
301 the old URL to the new slug instead of letting it silently 404 — once a slug is embedded in backlinks and search indexes, changing it gets expensive. Keep one separator and lowercase policy site-wide so /Hello-World and /hello_world never coexist. If your CMS already auto-generates slugs, treat this page as a preview and error check before writing back.