Slug / URL Encoder

Clean broken URLs or turn any title into a safe URL slug.

Processed locally — nothing is uploaded

About Slug / URL Encoder

Two related jobs in one place: turning a headline into a permalink that will not break, and repairing a URL whose spaces, accents or ampersands have already been mangled. Handy for CMS imports and file naming, where one stray character costs an afternoon.

Turn any title or heading into a clean, URL-safe slug, or encode and decode URLs that contain spaces and special characters. Good slugs are lowercase, hyphenated and free of punctuation, which makes links readable and friendlier for search engines.

Use it for permalinks, file names, anchor links and anywhere else that needs a tidy, shareable string. Getting it right before publishing matters, because changing a slug afterwards breaks every link already pointing at it.

Learn how this works

Frequently asked questions

What is a URL slug?

A slug is the human-readable part of a URL that identifies a page — usually the title in lowercase with spaces replaced by hyphens and special characters removed. For example, an article titled 'My First Blog Post' becomes my-first-blog-post, and a product called 'Blue Running Shoes' becomes blue-running-shoes. Slugs form the permanent permalink of a page and are used in content management systems to create readable URLs instead of numeric IDs. Good slugs improve both user experience (people can guess page URLs) and search engine optimization (keywords in the URL help with ranking).

Why do clean slugs matter for SEO?

Readable, keyword-relevant slugs help users and search engines understand a page at a glance and tend to earn slightly better click-through than opaque IDs. Search engines weight keywords in URLs as a minor ranking factor, so a slug containing your target keyword gives a small SEO boost. Users are also more likely to click on a readable URL like example.com/how-to-bake-bread than example.com/?id=12345, and they're more likely to remember and share URLs that make sense. Clean slugs also make your links more trustworthy in emails and documents, since recipients can see what the page is about before clicking.

Is my input uploaded?

No. Everything runs locally in your browser using standard web APIs — your text, files and inputs are never uploaded to a server, so the tool works even offline once the page has loaded.

Can I encode and decode URLs?

Yes. The tool handles URL-safe encoding of special characters (spaces become %20, ampersands become %26, etc.), and decodes percent-encoded URLs back to readable text. This is useful when working with query parameters or debugging URLs that have been encoded for transmission through web protocols. URL encoding ensures special characters are safely transmitted without breaking the URL structure, and decoding lets you read what parameters a URL actually contains without the encoding noise.

Related tools