Free Online Slug Generator
Generate clean, URL-friendly slugs from any text with multiple style options.
edit Input
Each line generates its own slug. Paste a list of titles to batch-convert them all at once.
Characters: 0
link Generated Slug
Lines: 0
Slug chars: 0
Key Features
3 Slug Styles
Default (preserves case), Lowercase (all lowercase + hyphens), and camelCase (variable names).
Real-time & Batch Mode
Slug updates instantly as you type. Paste multiple lines to generate one slug per line.
Character Normalization
Strips accents, special characters, and collapses whitespace for clean URLs.
Privacy First
All processing happens locally in your browser. No data ever leaves your device.
Frequently Asked Questions
Usage
What characters are removed during slug generation?
All punctuation and symbols (e.g., !, @, #, $, %, ^, &, *, parentheses, quotes) are stripped. Diacritics (accent marks like é, ñ, ü) are normalized to their ASCII base character using Unicode NFD decomposition. Multiple consecutive spaces, hyphens, and special-character runs are collapsed into a single hyphen. Leading and trailing hyphens are trimmed. Only alphanumeric characters (a-z, 0-9) and hyphens remain.
When should I use camelCase vs hyphenated slugs?
Hyphenated slugs (Default or Lowercase) are the standard for URLs and SEO — search engines treat hyphens as word separators, so "my-article-title" is read as three distinct words. camelCase slugs produce identifiers without separators (e.g., "myVariableName"), which are used for JavaScript variable names, API keys, CSS class names, and database identifiers where hyphens are not syntactically allowed.
How are non-Latin characters like Chinese or Arabic handled?
Characters that cannot be mapped to ASCII are preserved as-is in the output rather than being stripped. This means Chinese, Japanese, Arabic, and other non-Latin scripts will pass through unchanged. For full transliteration (e.g., converting Chinese characters to pinyin), use a dedicated transliteration library before generating the slug.
Why does my slug sometimes have unexpected hyphens?
Consecutive hyphens occur when the original text has multiple special characters next to each other or existing hyphens adjacent to stripped characters. For example, "A & B" becomes "a--b" after stripping "&" because spaces on both sides produce hyphens. The tool collapses these into a single hyphen, so "A & B" correctly becomes "a-b".
Can I generate slugs in bulk for an entire list?
Yes. Paste multiple lines of text into the input — each line generates its own slug in the output, separated by newlines. This works for any number of titles or phrases you need to convert at once. Copy the output to get all slugs, then paste into your CMS, spreadsheet, or code.