Slug Generator
Turn titles into clean, URL-safe slugs.
What is the Slug Generator?
A slug is the readable part of a URL that identifies a page, such as /blog/how-to-format-json. A slug generator lowercases a title, removes accents and punctuation, and joins the remaining words with hyphens so the result is safe in a URL and readable to both people and crawlers.
Frequently asked questions
Should slugs use hyphens or underscores?
Hyphens. Google treats a hyphen as a word separator and an underscore as a joining character, so how-to-format-json reads as three words while how_to_format_json can read as one. Hyphens are the long-standing recommendation.
How long should a URL slug be?
Short enough to read at a glance and long enough to describe the page — typically three to six words. Drop filler words like "the" and "a", keep the terms someone would actually search for, and never change a published slug without redirecting the old one.
Related Generators
- UUID GeneratorGenerate v4 UUIDs in bulk.
- QR Code GeneratorCreate styled QR codes for links, text and contact cards.
- Lorem IpsumGenerate placeholder paragraphs, sentences and words.
- Hash GeneratorHash text or files with SHA, SHA-3 and HMAC algorithms.
- Password GeneratorGenerate strong passwords or passphrases and score their strength live.
Slug Generator is one of 6 tools in Generators on Toolkit Hub, a free collection of browser-based utilities. It requires no account and no installation. Browse all tools.