Slug Generator
Generate URL-friendly slugs from text. Customize replacements, lowercasing, strict mode, and more.
Input Settings
Generated Slug
Length: 0 characters
About this tool
The Slug Generator tool allows you to easily convert any text into a URL-friendly slug. A slug is the part of a URL that identifies a particular page on a website in an easy-to-read form.
This tool is powered by the slugify npm package, giving you maximum control over how the slug is generated.
Basic Conversion
Spaces and special characters are replaced with a designated replacement character (default is -).
Replacement Character
Customize the character that replaces spaces in your text. You can use hyphens (-), underscores (_), or any other character.
Remove Regex
Specify a regular expression to define specific characters that should be completely removed from the resulting slug. For example, [*+~.()'"!:@] removes common special characters.
Lowercase
Optionally convert the entire slug to lowercase letters.
Strict Mode
When enabled, strictly strips all special characters except your chosen replacement character.
Locale Support
Provide a language code to apply specific language transliteration rules rather than generic fallbacks. For example, without a locale, the text ä ö ü is converted generically into a-o-u. But if you provide the German locale code de, it uses German spelling rules to correctly generate ae-oe-ue.
Acknowledgments
This tool utilizes the open-source slugify package to handle complex string conversion and transliteration rules.