Toolsy
Back to blog

Guides

Slugify titles for clean URLs

11 min read

A public URL path should read like a short label, not a pasted sentence. Slugify means turning a title into that label: lowercase, no spaces, usually hyphens between words, accents folded to plain ASCII when you need portable paths. Toolsy Slugify does that in your browser so draft titles never leave your machine while you fill a CMS field. Slugify is not the same as percent-encoding a query string; use the URL encoder when spaces and special characters sit inside ?… values. This guide covers hyphen choices, accents, what to do when you change a live slug, and how to check the path before publish.

Why messy titles make bad URL paths

CMS “permalink” fields often auto-build from the title. Left alone, you get %20, underscores mixed with hyphens, or leftover punctuation from an em dash in the headline.

Long titles become long paths. People paste the URL into chat, truncate it, or mistype it. Search consoles still crawl the long form, but humans share the short one.

Non-ASCII titles (accented Latin, other scripts) can produce percent-encoded path segments that look broken in some email clients. Many teams prefer an ASCII slug even when the visible H1 keeps accents.

What a clean slug looks like

Good public slugs are lowercase, hyphen-separated, short, and stable. Example shape: slugify-titles-for-clean-urls. You can still read the topic. You can say it on a call.

Avoid stop-word stuffing and date spam unless your CMS requires dates for uniqueness. Avoid CamelCase in the path; paths are not code identifiers.

Keep the slug aligned with the page topic. If the H1 changes completely, plan a redirect. Cosmetic Title Case tweaks in the heading do not require a new slug.

Hyphens versus underscores

Hyphens are the usual choice for public web URLs. Search engines treat hyphens as word separators in paths. Underscores are common in code, filenames, and some internal tools.

Pick hyphens for blog posts and marketing pages. Use underscores only when a platform or legacy API demands them. The Toolsy slugify FAQ states the same preference for public URLs.

Accents and punctuation

Strip accents when the rest of your site uses ASCII paths (résuméresume). Keep a consistent policy so one post does not mix cafe and café encodings.

Drop quotes, commas, and question marks from the path even if they stay in the H1. Question-mark characters in a path confuse parsers that expect ? to start the query.

How to prepare the title before you slugify

Finalize the wording first. Slugify after the H1 is stable enough to ship. If you are still deciding Title Case vs sentence case, settle display text with the case converter and the companion Title Case vs sentence case for headings, then slugify.

Cut marketing fluff from the path even if it stays in the headline. “Ultimate Guide to…” rarely needs to live in the URL.

Check for duplicate stems on the site. Two posts both becoming pricing will collide. Add a disambiguator only when needed (pricing-api, pricing-for-agencies).

Walkthrough in the slugify tool

  1. Open Slugify.
  2. Paste the final title (or a shorter path-oriented phrase).
  3. Choose hyphens for public URLs, or underscores if your stack requires them.
  4. Copy the slug into the CMS permalink / slug field.
  5. Preview the full URL on staging before you publish.

Nothing is uploaded. The product FAQ states the title stays in your browser and is not stored. Follow team rules for confidential working titles.

After slugify: when you still need URL encode

Slugify cleans the path. Query strings are a different layer. Campaign parameters with spaces still need percent-encoding. See URL-encode characters for query strings.

Do not run “encode everything” on the whole https:// URL after you slugify. Encode the query values (or path segments that truly contain reserved characters), not the scheme and host.

Changing a slug after publish

Search and social links remember the old path. If you must rename, add a 301 from the old slug to the new one in your host or CMS. Update internal links in the same release.

Do not change slugs for cosmetic capitalization. My-Post and my-post should already be normalized to one form.

How to check the result before you publish

Open the staging URL. Confirm the path is lowercase and hyphenated. Click in-page links that point at the post.

Paste the URL into a chat client and a plain-text email. Watch for line breaks that split the path. Short slugs survive that better.

Run your SEO checklist before you publish. Slug quality sits next to title tags, canonicals, and internal links. A clean slug will not fix a missing meta description.

Related jobs: encode, case, and SEO checklist

Use URL encode for query and special characters, not for building the everyday blog path. Use case converter for visible headings. Use the SEO checklist as the final gate.

If you debug tracking links with many parameters, pair encoding with a parser workflow from the URL tools cluster rather than stuffing everything into the slug.

Limits, privacy, and when not to use this

Slugify is free, browser-side, and aimed at one title at a time. It is not a bulk redirect migrator and not a full Unicode IDN domain tool.

It will not create redirects for you. It will not update sitemaps. Those remain CMS or deploy jobs.

If policy blocks pasting launch codenames into any web UI, run an offline slugify in your editor or a small local script.

Frequently asked questions

What does slugify mean?

Slugify means turning a human title into a short URL path segment without spaces or odd punctuation, such as my-post-title. The result is meant for the path, not for the visible H1 styling. Toolsy’s Slugify builds that string in your browser. You still paste it into the CMS field yourself.

How do I slugify a blog title online for free?

Paste the title into Slugify, pick hyphens for a public URL, and copy the result. No account is required. Trim the phrase first if the full headline is too long for a path. Preview the staging URL before publish.

Should I slugify with hyphens or underscores?

Use hyphens for public blog and marketing URLs. Underscores fit some code paths and filenames. Mixing both on one site confuses humans and some analytics filters. Stick to one rule per surface.

Is slugify the same as URL encode?

No. Slugify builds a readable path from a title. URL encode percent-encodes characters so query values (and some path segments) stay intact in a full URL. Use URL encode when spaces or & sit inside parameters. See the query-string guide for the encode workflow.

Does the slugify tool upload my title?

No. The Toolsy product FAQ states the title stays in your browser and is not stored. Treat that as paste privacy, not a substitute for offline policy when titles are confidential. Local editor plugins remain available for locked-down environments.

How short should a URL slug be?

Short enough to read aloud and paste without wrapping. Include the main topic words; drop filler. Exact character caps vary by CMS. If the title is a paragraph, write a shorter slug by hand and keep the long sentence in the H1 only.

What happens to accents when I slugify?

Many slug tools fold accents to ASCII so paths stay portable (ée). Decide whether your site allows Unicode in paths. ASCII-only paths are safer for older email clients and copy-paste. Keep accents in the visible title when brand needs them.

Can I change a slug after the post ranks?

You can, but add a permanent redirect from the old path and update internal links. Expect temporary noise in analytics. Avoid churn for minor wording tweaks. Plan the slug before the first public share when you can.

Should the slug match the H1 exactly?

It should match the topic, not every word. H1 can be longer and styled with Title Case or sentence case. The slug stays lowercase and hyphenated. See Title Case vs sentence case for headings for display text.

Is this slugify tool free?

Yes. Create as many slugs as you need without an account on Toolsy. That covers CMS fields, landing paths, and filenames. Bulk site migrations still need your own scripts or CMS features.

Before you hit publish, run the SEO checklist. If the link carries a query string with special characters, continue with URL-encode characters for query strings.

Slugify a title

Paste a title, choose hyphens or underscores, copy a clean slug. Runs in your browser; the title is not stored.

Open slugify
Share this article

More to read

Slugify titles for clean URLs — Toolsy