Text to Slug
Convert text and titles into clean, URL-ready slug strings with customizable separators and letter casing.
Run tool
This online tool transforms plain text and article titles into clean, URL-friendly slug strings. It removes special punctuation, strips characters that cannot be converted to ASCII, and trims leading and trailing divider characters. Any sequence of spaces, hyphens, or underscores is collapsed and replaced with your chosen separator character, which defaults to a single hyphen. You can customize the output by supplying an alternative single-character separator such as an underscore. The tool also includes an option to preserve original letter casing when uppercase characters are needed for specific naming conventions. If your input contains multiple lines separated by line breaks, each line is processed independently into its own slug format. Paste your headline, title, or list of terms into the text area, adjust your formatting settings, and copy the resulting slug for use in web addresses, file paths, or content management systems.
Instructions
- Enter or paste your text or list of titles into the Text field.
- Choose a custom separator character if you want something other than the default hyphen.
- Leave the Lowercase checkbox selected to convert all characters to lowercase, or clear it to preserve original case.
- Review the generated slug output in the result area.
Examples
- Converting "Hello World: An Introduction to AI!" with default settings produces "hello-world-an-introduction-to-ai".
- Converting "User Profile Settings" with an underscore "_" as the separator produces "user_profile_settings".
- Converting "Release Note 2.0" with Lowercase disabled produces "Release-Note-2-0".
FAQ
How does the tool handle accents and special characters?
The converter decomposes accented letters to their ASCII equivalents when possible and removes characters that cannot be represented in ASCII, along with punctuation marks.
Can I convert multiple titles at the same time?
Yes. If your input has multiple lines separated by line breaks, each line is converted into an independent slug on its own line.
What happens if I enter a multi-character separator?
The converter uses only the first character of whatever text you provide in the separator field.
What happens when the text field is left empty?
Leaving the text field empty returns an empty result with no slug generated.