Slug Generator
Turn any title into a clean, URL-friendly slug — lowercase, hyphenated, accent-safe.
- Free forever
- No sign-up
- Runs in your browser
Title or text
Slug
What is a slug generator?
A slug generator turns a human title into the clean, URL-friendly string that goes in a link. Take a heading like “How to Merge PDF Files for Free!” and it becomes how-to-merge-pdf-files-for-free — lowercase, hyphenated, and free of spaces, punctuation and accents.
Slugs matter more than they look. They show up in the address bar, in search results, when links are shared, and in your analytics. A tidy, descriptive slug is easier to read, more clickable, and gives search engines a clear, keyword-rich signal about what the page is. A messy one (page?id=4821) does none of that.
How to use it
- Type or paste your title into the box.
- The slug updates live underneath.
- Optionally switch the separator (hyphen or underscore) or toggle lowercase.
- Hit Copy and paste it into your CMS, route or filename.
What makes a good slug
- Short and descriptive. Keep the meaningful words; drop filler.
merge-pdf-filesbeatshow-to-merge-your-pdf-files-together-online. - Lowercase. Mixed-case URLs can behave inconsistently across servers and look untidy. Lowercase is the safe standard.
- Hyphen-separated. Hyphens are read as spaces by search engines; underscores are not. Use hyphens unless a system specifically needs underscores.
- ASCII only. Strip accents and symbols so the link works everywhere and doesn’t turn into
%-encoded gibberish when copied. - Stable. Once a page is live, avoid changing its slug — if you must, set up a redirect so old links keep working.
How it cleans your text
The generator does a few things in order: it transliterates accented characters to plain ASCII, replaces every run of non-alphanumeric characters with your chosen separator, collapses repeats, and trims separators from the ends. The result is always a valid, link-safe slug — no leading hyphens, no double dashes, no spaces.
Where you’ll use it
- Blog posts and articles — generate the permalink before you publish.
- Product and category pages — keep e-commerce URLs readable and keyword-relevant.
- File names — turn a title into a safe, lowercase filename for assets or downloads.
- Anchors and IDs — create clean fragment links for headings.
Tips and common mistakes
- Front-load keywords. The most important words should appear early in the slug.
- Don’t keyword-stuff. A slug that repeats the same word reads as spammy; one clear phrase is enough.
- Mind length. Very long slugs get truncated in search results and are awkward to share — aim for a handful of words.
- Decide on a separator and stick to it across your whole site for consistency.
Because it runs entirely in your browser, the slug generator is a fast, private step to keep in your publishing workflow — paste a title, copy a clean slug, and ship the page with matching meta tags; when you share that link in a campaign, layer on tracking with the UTM builder.
Frequently asked questions
Comet's got your back
Stuck on something? Every tool has a short guide and FAQ — and Comet can point you to the right spot.
Visit help centreRelated tools
All SEO & Web tools →UTM Builder
Build tagged campaign URLs with UTM parameters for accurate analytics tracking.
SEO & WebMeta Tag Generator
Generate SEO, Open Graph and Twitter card meta tags for your page's <head>, ready to copy.
SEO & WebRobots.txt Generator
Build a correct robots.txt with allow/deny rules, sitemap and AI-bot presets.
SEO & Web