Back to Tools

Text to Slug Converter

Convert any text into a clean, SEO-optimized URL slug instantly

Enter Your Page Title or Text 0 Words | 0 Chars
Primary Slug Result
URL Friendly?
VALID

Ready for use in permalinks and routes.

Variation (Underscore)
Live Preview
https://yoursite.com/

Make a URL-ready slug from any title

A slug is the readable last part of a web address, like /how-to-merge-pdf-files. Good slugs are lowercase, free of odd characters and separated by hyphens. Text to Slug takes a title, headline or product name and produces exactly that, so you do not have to strip punctuation and swap spaces by hand each time you publish something new.

Creating a slug

  1. Type or paste your page title into the Enter Your Page Title or Text box. A counter above it shows words and characters as you type. Paste and Clear buttons sit underneath for quick input.
  2. Click Generate SEO Slug.
  3. Read the Primary Slug Result. Press Copy to put it on your clipboard, or Export to download it as a small text file named seo-slug.txt.
  4. Use the Variation (Underscore) card if you need the same slug with underscores, and glance at the Live Preview to see it after https://yoursite.com/.

Exactly what happens to your text

The text is lowercased, every character that is not a letter, digit, underscore or space is deleted, and each run of spaces becomes one hyphen. So 10 Best SEO Tools: 2024 Edition! turns into 10-best-seo-tools-2024-edition.

Where it fits

  • Setting a permalink for a blog post when your CMS insists on typing it manually.
  • Naming routes or file names in a static site, where consistent lowercase hyphenated names avoid case-sensitivity problems on servers.
  • Generating slugs for a list of product names before importing them to a store.
  • Making anchor IDs for headings in documentation.

Watch out for these results

The rule is deliberately simple, and a few inputs behave in ways you may not expect. Hyphens you type are deleted rather than kept, so well-known becomes wellknown; write it with a space instead if you want two words. Accented and non-Latin letters are removed, not transliterated, so a title like Cafe Creme with accents loses those letters and non-English scripts may leave an empty result. The tool also does not drop filler words or shorten long titles, so trim the title first if you want a tidy address. The URL Friendly? badge is always displayed as VALID and is not a separate check, so review the slug yourself. Everything runs in your browser.

Related Articles


Related Tools








Frequently Asked Questions

What characters are removed from the text?
Anything that is not a letter, digit, underscore or space is deleted. That includes punctuation, symbols, emoji and existing hyphens. Spaces are then converted to hyphens, and the whole result is lowercased.
Why did my hyphenated word lose its hyphen?
Hyphens in the original text are removed along with other punctuation, so well-known becomes wellknown. To get well-known in the slug, type the words separated by a space, such as well known.
Does it handle accented or non-English letters?
It does not transliterate them. Accented characters and non-Latin scripts are stripped out because only basic letters, digits and underscores are kept. Replace accents with plain letters before converting for best results.
What does the underscore variation do?
It applies the same cleaning but joins the words with underscores instead of hyphens. It is helpful for file names or database keys. For website addresses, hyphens are generally the better choice.
What does the Export button save?
It downloads the primary slug as a plain text file called seo-slug.txt. The file contains only the slug itself, with no extra formatting, so you can open it anywhere or just use Copy instead.
Support Chat
We typically reply within minutes

Hello! 👋 Before we start, please tell us your name.