Text to Slug
Turn any headline or title into a clean URL slug with this free text to slug converter. It lowercases your text, strips accents and punctuation, and swaps spaces for hyphens (or underscores) — then copy the result straight into WordPress, Shopify or any CMS.
Generate a URL Slug
| Characters | – |
| Words | – |
How to Use the Text to Slug Tool
Paste or type your headline into the text box — a blog title, product name, video title, anything. The slug appears instantly below as you type, with a character count and word count to keep it tight. When it looks right, press Copy Slug and paste it into your CMS's URL or "permalink" field.
Three options control the output. The word separator defaults to the hyphen, which Google recommends because it treats hyphens as word boundaries; switch to underscore only if a legacy system demands it. Lowercase keeps every letter small, since mixed-case URLs cause duplicate-content headaches on case-sensitive servers. Strip accents converts characters like é, ñ and ü to plain ASCII — otherwise they get percent-encoded into unreadable strings like caf%C3%A9 that look broken when shared.
How Slug Generation Works
A slug is just your title run through a strict cleanup pipeline, and this tool applies the same steps every CMS uses under the hood:
First, Unicode normalization decomposes accented characters into a base letter plus a combining mark (é becomes e + ´), and the strip-accents step deletes the marks, leaving plain e. Lowercasing follows, because Example.com/Page and example.com/page are technically different URLs on many servers. Then every run of characters that is not a letter, digit or space — punctuation, brackets, emojis, currency symbols — is replaced with the separator, whitespace collapses into separators, repeats merge into one, and any leading or trailing separators are trimmed. What survives is guaranteed URL-safe without any percent-encoding.
Worked Example
Take the headline "10 Best Coffee Makers of 2026 (Reviewed!)" and watch the pipeline:
| Step | Transformation | Result |
|---|---|---|
| 1. Start | Raw headline | 10 Best Coffee Makers of 2026 (Reviewed!) |
| 2. Lowercase | All letters to lowercase | 10 best coffee makers of 2026 (reviewed!) |
| 3. Replace symbols | ( ) ! become hyphens | 10-best-coffee-makers-of-2026--reviewed-- |
| 4. Collapse & trim | Double hyphens merge; ends trimmed | 10-best-coffee-makers-of-2026-reviewed |
Eight words, 39 characters, zero unsafe characters — paste it after your domain and you have a link that survives email clients, social previews and search results intact. Try unchecking "Strip accents" with a word like "café" to see the difference it makes: the é survives and would be encoded as caf%C3%A9 by browsers.
Slug SEO Best Practices: What Most Generators Don't Tell You
Generating the slug is the easy part; writing a good one is where most people leave SEO value on the table. Keep the slug short — 3 to 5 meaningful words — and front-load your target keyword, since URLs get truncated in search results and users scan the first words. Strip stop words ("and", "the", "of", "a") unless removing them changes the meaning: "best-coffee-makers-2026" beats "the-10-best-coffee-makers-of-2026" in every share preview.
| Do | Don't |
|---|---|
| Use hyphens between words | Use underscores — Google reads them as joiners |
| Include the target keyword early | Stuff every keyword variation in |
| Keep it under ~60 characters | Publish the full 20-word headline as the URL |
| Set the slug once and leave it | Change slugs later without a 301 redirect |
The last row matters most: once a URL is indexed or shared, changing the slug breaks every existing link. Pick the slug deliberately at publish time — that is exactly what this tool is for — and if you must change one later, set up a 301 redirect from the old URL so link equity and visitors follow.
Limitations
This tool generates the slug mechanically; it does not write it for you. It will not remove stop words, shorten an overlong headline, or pick which keywords matter — those editorial calls still need a human. Non-Latin scripts (Chinese, Arabic, Cyrillic) are stripped rather than transliterated, so headlines in those languages produce short or empty slugs; romanize the title first for best results.
The copy button uses the browser clipboard API, which requires a secure (HTTPS) context — on plain HTTP it falls back to a manual select-and-copy message. Generated slugs are not checked against your site for duplicates; if two posts produce the same slug, your CMS will typically append a number, so verify uniqueness before publishing.
A clean slug is invisible craft; so is a clean subtitle file. The Subtitle Editor fixes timings and text in SRT and VTT files with the same philosophy — small, exact, and done in the browser without an upload.
Guides for This Tool
Frequently Asked Questions
What is a URL slug?
How do I convert text to a slug?
Should URL slugs use hyphens or underscores?
How long should a URL slug be?
Do slugs affect SEO?
What characters are allowed in a URL slug?
Related Tools
Email Button Generator
Build bulletproof email CTA buttons free — VML fallback for Outlook plus styled anchor, live preview, custom colors…
WhatsApp Chat to PDF — Free Chat Book Maker
Turn a WhatsApp chat export (.txt) into a beautiful printable chat book. Filter by date, align your own messages, then…
Voice Dictation — Free Speech-to-Text Online
Dictate live into text with free browser speech recognition. 8 languages, live results, copy or download notes. Works…
Character Counter
Count letters and characters, with or without spaces.
Word Counter
Count words, characters, sentences and reading time of any text.
Email Newsletter Composer
Write Markdown, get email-client-safe HTML — table-based layouts with inline CSS for Outlook and Gmail. 3 templates…