ruxox
Start
Start
URL / Slug

URL Encoder & Slug Converter

Encode and decode URLs, convert text to clean SEO slugs. Runs in your browser with no server calls or data tracking.

URL Encoder & Slug Converter

Runs entirely in your browser — no server calls, no tracking.

Enter text and click Convert.

🔒 Your data never leaves this tab. This tool has no backend.

About this tool

About the URL Encoder & Slug Converter

URL encoding converts characters that are not safe to include in a URL (spaces, ampersands, special characters) into a percent-encoded format browsers can parse. Slug generation does the opposite — it takes a phrase like a blog title and converts it to a lowercase, hyphenated string safe for use as a URL path segment. Both operations run here without any server call.

Slug best practices for SEO

Good slugs are short, lowercase, and hyphenated. They include the target keyword and drop stop words (the, a, and, for). A slug like /blog/custom-software-development-cost-2026 outperforms /blog/post?id=452&title=Custom+Software+Development+Cost+in+2026 for both human readability and Google's ability to understand the page topic from the URL alone.

When to encode vs not encode

Encode user-supplied input before inserting it into a URL query string to prevent injection. Do not encode the entire URL — only the parameter values. Path segments use a slightly different encoding than query parameters; encodeURIComponent encodes everything except letters, digits, and -_.!~*'() which is appropriate for query values.

This tool handles Unicode correctly: it strips diacritics before slugifying, so "Café au Lait" becomes cafe-au-lait rather than failing or producing encoded characters in the slug.

FAQ

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?
encodeURI is for encoding a complete URL — it leaves characters like /, ?, #, and & intact because they have structural meaning in a URL. encodeURIComponent encodes everything except alphanumerics and a few safe characters, making it correct for encoding individual query parameter values.
Why does my slug tool produce different results from WordPress?
Different slugifiers handle edge cases differently: apostrophes (drop vs encode), numbers-only slugs, consecutive hyphens, and Unicode normalisation. This tool follows the most common convention: lowercase, ASCII only, hyphens for separators, strip leading and trailing hyphens. WordPress's sanitize_title follows the same broad approach.
Can I use this to decode encoded URLs from server logs?
Yes — paste the percent-encoded URL into the input, choose Decode, and the tool returns the human-readable version. Useful for reading log entries like /search?q=custom%20software%20development%20uk.
Custom software

Need a custom web app or CMS built?

ruxox builds production-grade software for growing businesses. Free scoping estimate in 48 hours.