String to Slug Converter
Generate SEO-friendly URL slugs from any string. Features smart transliteration, accent removal, and custom separators. Perfect for developers and content creators.
About
This tool transforms raw text into clean, URL-friendly slugs used in modern web development and SEO. A slug is the part of a URL that identifies a specific page in a human-readable format. For example, converting "How to & code!" into "how-to-and-code".
The conversion process follows a strict pipeline: Normalization (handling accents like é → e), Transliteration (expanding symbols like $ → dollar), and Sanitization (removing unsafe characters). This ensures your URLs are compatible with RFC 3986 standards, safe for browsers, and optimized for search engine indexing.
Formulas
The core logic relies on Unicode Normalization Form Canonical Decomposition (NFD) combined with Regular Expressions.
Where S is the input string and sep is the chosen separator (usually -). The normalization step separates diacritics from letters:
Reference Data
| Original Character | Slugified Result (Standard) | Slugified Result (Strict/German) |
|---|---|---|
| Spaces | - (hyphen) | - (hyphen) |
| CamelCase | camel-case | camel-case |
| Schön | schon | schoen |
| Straße | strasse | strasse |
| $ 100 | dollar-100 | dollar-100 |
| C# | c-sharp | c-sharp |
| 100% | 100-percent | 100-percent |
| file.txt | file-txt | file-txt |