Conversion 100% in your browser

Text to Slug Converter — URL-Safe Slug Generator

Convert any text to a clean URL-safe slug. Removes accents, special characters, punctuation. Custom separator (- or _), lowercase, max length, stopword removal.

Text to Slug Converter — Turn Any Text Into a Clean URL Slug

Convert article titles, product names, or any string into a clean, URL-safe slug. Accents are normalized (é → e), special characters are dropped, spaces become dashes (or underscores), and the result is ready to use as a URL path, a CSS class, a filename, or any identifier. Everything runs in your browser.

What it handles

  • Accents and diacritics: é, è, à, ñ, ü, ç, š, č — all normalized to ASCII (e, n, u, c, s, c)
  • Special Latin letters: ß → ss, æ → ae, œ → oe, ø → o, ł → l, þ → th
  • Punctuation and symbols: !, ?, &, %, $, @, etc. — all replaced by the separator
  • Whitespace: spaces, tabs, newlines — collapsed to a single separator
  • Leading/trailing separators: trimmed automatically
  • Consecutive separators: collapsed so you never get “–” or “__”

Options

  • Separator: dash (-) — the SEO standard for URLs; or underscore (_) — common for filenames
  • Case: lowercase (default, best for URLs) or preserved (keep capitalization)
  • Max length: truncate to N characters with clean cutoff (no half-words at the end)
  • Stopword removal: drops common short English words for shorter slugs

Why slugs matter for SEO

Search engines read URLs. A page at /the-complete-guide-to-baking-bread ranks better than one at /?p=1234. Clean slugs also look trustworthy in social shares and email previews. Keep them short, lowercase, dash-separated, and descriptive.

Common uses

  • WordPress, Ghost, Hugo post slugs from titles
  • E-commerce product URLs
  • File and folder names without spaces or special chars
  • CSS class names from descriptive labels
  • API resource identifiers
  • Custom anchor IDs for in-page links

Privacy

This tool runs entirely in your browser. Your text is never uploaded.

Step by step

  1. Type the text or title you want to turn into a slug.
  2. Choose the separator (dash or underscore) and the case.
  3. Set a maximum length if needed and remove common English stop words.
  4. Copy the slug with Copy slug.

Frequently asked questions

How long should a slug be?
As short as it can be while staying clear. Short slugs are easier to read and share.

What happens to accents and special characters?
They are removed or converted so the URL stays clean. Check the result briefly before you use it.

What does the stop-word option remove?
Common English words such as “a”, “the” or “of”. It leaves text in other languages unchanged.