Skip to content
SmaftyTools

Text to Slug

Turn any title into a clean, SEO-friendly URL slug — lowercase, hyphenated and free of accents or special characters.

URL slug

Output will appear here

About Text to Slug

The Text to Slug tool converts titles and phrases into clean URL slugs: lowercase, hyphen-separated, with accents transliterated (é → e) and special characters removed. 'How to Make Great Coffee!' becomes 'how-to-make-great-coffee'.

Clean slugs matter for SEO and usability — they're readable in search results, safe in every browser and server, and stable enough to never need encoding. The tool also converts ampersands to 'and' so meaning isn't lost, and offers underscores as an alternative separator for identifiers.

How to Use the Text to Slug

  1. Type or paste your title or phrase.
  2. Pick a separator (hyphen for URLs, underscore for identifiers).
  3. Copy the generated slug.

Features

  • Accent and diacritic transliteration (café → cafe)
  • Removes symbols and collapses whitespace
  • Hyphen or underscore separators, optional lowercase
  • Works with any language's letters and numbers

Frequently Asked Questions

Should I use hyphens or underscores in URLs?

Hyphens. Search engines treat hyphens as word separators but may read underscore-joined words as a single term. Use underscores only for code identifiers or filenames.

How long should a URL slug be?

Keep it under about 60 characters and focused on the main keywords. Drop filler words when they don't change the meaning.

Is the slug generator free?

Yes, the slug generator is completely free with no usage limits. No signup, no account and no installation required.

Is my data safe?

Yes. All processing happens locally in your browser using JavaScript — nothing you type is uploaded or stored on our servers.