Slugify
Turn any text into a clean, URL-safe slug.
Lowercases, strips accents and punctuation, and joins words with hyphens.
About Slugify
Slugify turns any text into a clean, URL-safe slug: lowercase, hyphen-separated, with accents and special characters stripped. It is what you want for generating test URLs, predictable file names, CSS test ids or fixture keys from human-readable titles.
The conversion runs live as you type. Paste a headline, a product name or a test case title and get a slug you can drop straight into a route or a filename without worrying about spaces, punctuation or Unicode surprises.
How to use
- Type or paste your text into the input box.
- The slug appears immediately — lowercase, hyphenated and stripped of unsafe characters.
- Copy the result into your URL, filename or test identifier.
Frequently asked questions
What exactly does slugification change?
Text is lowercased, accents are removed, anything that is not a letter or digit becomes a hyphen, and repeated or trailing hyphens are collapsed — producing the style of slug you see in blog URLs.
Why do slugs matter for testing?
Slugs generated from user content are a rich source of edge cases: emoji, accents, very long titles, duplicate titles. Generating expected slugs here lets you assert against them precisely.
Are non-Latin scripts supported?
Characters that cannot be transliterated to ASCII letters or digits are dropped, so fully non-Latin input may produce a short or empty slug — itself a useful edge case to test in your application.
Related tools
Text Diff
Compare two blocks of text and highlight added and removed lines.
Regex Tester
Test a regular expression live with match highlighting and capture groups.
Case Converter
Convert text between camelCase, snake_case, kebab-case and more.
String Escaper
Escape text for JSON, HTML, URLs, SQL or regex.
