Slug Generator

Turn a title or phrase into a lowercase, hyphenated URL slug, the readable tail of a web address. It updates as you type, in your browser.

Updated

SEO Tools● Free No upload Instant

Loading Slug Generator…

Your browser is preparing the tool. It runs 100% locally.

Quick answer

Type a title and the tool returns a lowercase URL slug, with spaces turned into hyphens and punctuation removed. It keeps only a-z, 0-9 and hyphens, collapses repeated hyphens, and trims them from the ends, matching Google's advice to use hyphens as word separators. It strips characters instead of transliterating them, so an accented é is dropped rather than turned into e, and non-Latin scripts come out empty. Everything happens in your browser.

What the Slug Generator does

Paste a headline, product name or phrase and you get the slug, the human-readable part of a URL like /best-online-tools, built as you type. Spaces become hyphens, capitals become lowercase, and anything that is not a letter, digit or hyphen is removed, so the result drops straight into a path.

The slugs are predictable. There is no dictionary, stop-word removal or transliteration; you get the lowercase letters, digits and hyphens of what you typed, with repeated and edge hyphens cleaned up.

How it works

The tool lowercases your text, then removes every character that is not a lowercase letter, a digit, whitespace or a hyphen. It collapses each run of spaces into a single hyphen, reduces any run of hyphens to one, and trims a leading or trailing hyphen so the slug never starts or ends with a dash.

Because the filter is a strict allow-list, accented and non-Latin characters are dropped, not converted. Café Münchner becomes caf-mnchner, and a title written in Cyrillic or Hindi returns an empty slug. If you need transliteration (ü to ue, ß to ss, or romanised Hindi), do it before pasting.

Generation algorithm

  1. Lowercase the text. Convert the whole title to lowercase so the slug is case-consistent.
  2. Strip to the allow-list. Remove every character except a-z, 0-9, whitespace and hyphen. Punctuation, symbols and accented letters are dropped.
  3. Spaces to hyphens. Replace each run of whitespace with a single hyphen.
  4. Collapse and trim. Reduce any run of hyphens to one and remove a leading or trailing hyphen.

Worked example

Input: 10 Best FREE Online Tools (2026)! lowercase: 10 best free online tools (2026)! strip symbols: 10 best free online tools 2026 spaces to hyphens: 10-best-free-online-tools-2026

The parentheses and exclamation mark are removed entirely; nothing is transliterated and no words are dropped.

Technical details

Inputany title or phrase
Outputlowercase a-z, 0-9 and hyphens
Separatorhyphen (spaces become hyphens)
Punctuation & symbolsremoved (an ampersand is dropped, not turned into 'and')
Accents / non-Latinstripped, not transliterated
Underscoresremoved (words join, no hyphen added)
Where it runsIn your browser, as you type

Standards and references

  • URL syntax (RFC 3986): the standard's unreserved set is letters, digits, hyphen, period, underscore and tilde; the common slug convention narrows that to lowercase letters, digits and hyphens, which need no percent-encoding.
  • Hyphens as word separators (Google): Google treats a hyphen as a separator between words and an underscore as a joiner, so blue-widgets reads as two words but blue_widgets reads as one. Google's URL guidance recommends hyphens.
  • No transliteration: this tool removes characters outside a-z and 0-9 rather than mapping them; é is dropped, not turned into e.

Accuracy and limits

It strips rather than transliterates. Accented Latin letters (é, ñ, ü) are removed, and text in non-Latin scripts (Cyrillic, Arabic, Chinese, Devanagari) returns an empty slug. For those, transliterate to ASCII before pasting.

An ampersand is removed, not converted to 'and', so 'Q&A tips' becomes qa-tips. If you want the word, type 'and' yourself before generating.

Underscores are stripped and no hyphen replaces them, so the words on either side join: hello_world becomes helloworld. Use spaces or hyphens between words, not underscores.

It does not remove stop words. Short words like a, the and of stay in the slug; trim them yourself if you want a shorter URL.

It does not shorten or truncate. A very long title produces a very long slug; edit it down and front-load the keywords, since shorter, readable slugs are easier to read and share.

Real-world uses

Blog and CMS URLs

Turn a post headline into the slug for its permalink.

Product and category pages

Make consistent, readable slugs for catalogue URLs.

Anchors and IDs

Generate a clean id or fragment from a heading.

File and asset names

Create lowercase, hyphenated names that are safe across systems.

When it fits, and when it doesn't

Good for

  • Latin-script titles and phrases
  • Readable lowercase, hyphenated URLs
  • Quick one-off slugs while writing
  • Cleaning capitals, spaces and punctuation

Not the best choice for

  • Accented or non-Latin text that needs transliteration
  • Keeping underscores as separators
  • Auto-removing stop words
  • Length-limiting a long slug

Need accents mapped to ASCII (ü to ue, ß to ss) or non-Latin romanised? Transliterate first, then slugify. Want spaces encoded instead of stripped? That is URL encoding, which a URL encoder handles.

Frequently asked questions

What is a URL slug?
It is the readable part of a web address that identifies a page, such as 'best-online-tools' in example.com/best-online-tools. A clean slug helps people and search engines understand what the page is about.
Why hyphens instead of underscores?
Google treats a hyphen as a word separator and an underscore as a joiner, so url-slug reads as two words but url_slug reads as one. Google's URL guidance recommends hyphens, which is what this tool produces.
Does it convert accented letters like é or ü?
No. It strips them, so Café becomes caf. The tool keeps only a-z, 0-9 and hyphens, so if you need é to become e or ü to become ue, transliterate the text before pasting.
What happens to non-English text?
Scripts outside a-z (Cyrillic, Arabic, Chinese, Hindi) are removed, so a title written entirely in one of them returns an empty slug. Romanise it to ASCII first.
Why did the ampersand disappear?
An ampersand is not a letter or digit, so it is stripped and Q&A becomes qa. If you want the word 'and' in the slug, type it out before generating.
What does it do with underscores?
It removes them, and since no hyphen takes their place the words run together: hello_world becomes helloworld. Use spaces or hyphens between words instead.
Does it remove small words like the or of?
No. It keeps every word; it only strips characters, not stop words. Delete short words yourself if you want a tighter slug.
Is there a length limit?
No. The slug is as long as your input allows. Shorter slugs read and share better, so trim a long title down to its key words.
Will changing a slug affect SEO?
Changing the slug of a live, ranking page changes its URL, so set up a 301 redirect from the old URL to the new one to keep its rankings and any inbound links.
Does capitalisation matter?
Slugs should be lowercase to avoid case issues on some servers, where /Page and /page can be two different URLs. The tool always lowercases for you.
Is my text sent anywhere?
No. The slug is generated in your browser as you type; nothing is uploaded.
Can I edit the result?
Yes. It is plain text, so copy it and adjust it (drop stop words, shorten it) before you use it.

References

Checked against the slug code: it keeps only a-z, 0-9 and hyphens, following Google's hyphen-as-separator advice. Accented and non-Latin characters are dropped, not transliterated, and the page says so.

PopularHot

Meta Tag Generator

Fill in your page title, description, keywords and author, and the tool writes a block of HTML head meta tags you can paste, with the title, description, viewport and robots tags included. The block updates as you type.

SEOOpen Tool
Trending

Open Graph Generator

Generate Open Graph meta tags so your page shows a proper title, description and image when shared on Facebook, LinkedIn, WhatsApp and more. Fill four fields and copy the block.

SEOOpen Tool
Trending

SERP Snippet Preview

Type a title, URL and meta description to see roughly how your page could look in Google, cut to length the way a real result is.

SEOOpen Tool

Robots.txt Generator

Generate a robots.txt that sets crawler and AI-bot access and points to your sitemap.

SEOOpen Tool

Readability Checker

Paste your text to get its Flesch Reading Ease score and US grade level, the two classic readability measures, updated as you type.

SEOOpen Tool
PopularHot

Image Compressor

Compress an image to JPEG with a quality slider and watch the file size drop as you drag, in your browser.

ImageOpen Tool

Back to the Slug Generator

Generate as many as you need at the top of the page. It runs on this device and needs no account.