Anyrow
Log InGet Started

Free online tool

Free Online Slugify Tool

Convert any text into a clean URL-safe slug. Strips diacritics, replaces spaces and special characters, supports hyphen or underscore separators, and optional max-length truncation. 100% client-side — no signup required.

Separator:

01How it works

01

Type or paste your text

Enter any title, phrase, or text. The slug updates live as you type.

02

Adjust options

Toggle lowercase, diacritic stripping, choose a separator, and set an optional max length.

03

Copy the slug

Click Copy to put the slug on your clipboard, ready to paste into your CMS or code.

FAQ

Frequently asked questions

How does diacritic stripping work?

Diacritic stripping decomposes accented characters using Unicode NFD normalisation, then removes the combining accent marks. For example, é becomes e, ñ becomes n, and ü becomes u. This makes slugs ASCII-safe and universally readable in URLs.

What happens to the slug when max length is set?

When max length is set, the slug is truncated at that character count and any trailing separator is removed. For example, with max length 10, 'hello-world-foo' becomes 'hello-worl' if the cut falls mid-word. The separator is never the last character of a truncated slug.

When should I use hyphen versus underscore as separator?

Choose hyphen (-) for standard web URLs — it is what Google recommends for SEO and it is the most widely recognised word separator in URLs. Choose underscore (_) when your system treats hyphens as part of a word (some databases and legacy APIs do).

What happens if the input produces an empty slug?

If no slug-safe characters remain after stripping (for example, if the input contains only emoji or punctuation with diacritics stripped), the tool returns an error rather than an empty string. Adjust your input or disable diacritic stripping to preserve characters.

Other free tools

JSON to CSV ConverterCSV to JSON ConverterJSON Formatter & ValidatorBrowse all tools →

Need AI-powered document extraction?

This tool uses client-side processing. anyrow uses AI to extract structured data from PDFs, images, and scanned documents with 99% accuracy. 150 free extractions/month — no credit card required.

Try anyrow freeSee how it works