URL Encoder/Decoder

Last updated: February 15, 2026

URL Encoder & Decoder

Encode special characters in URLs to percent-encoding format or decode percent-encoded URLs back to readable text. Essential for building valid URLs with query parameters.

How URL Encoding Works

Characters not allowed in URLs are replaced with % followed by their hex ASCII code. Space becomes %20 (or + in query strings). Non-ASCII characters are first encoded to UTF-8 bytes, then percent-encoded.

Characters That Must Be Encoded

  • Spaces → %20 or +
  • & → %26 (separates query parameters)
  • = → %3D (separates key from value)
  • # → %23 (fragment identifier)
  • ? → %3F (query string start)

Common Use Cases

  • Building API query strings with special characters
  • Encoding file names with spaces for download URLs
  • Handling international characters in URLs
  • Debugging encoded URLs from analytics tools

URLs Are More Fragile Than You Think

Paste a URL into an email, a spreadsheet, or a poorly configured CMS, and something almost always breaks. Spaces turn into question marks, ampersands get swallowed, and suddenly your carefully crafted tracking link returns a 404. This is the problem URL encoding solves — and a URL Encoder/Decoder tool makes that solution instant, free, and painless.

Here's what's actually happening under the hood: the internet was built on a character set that only trusts a small group of letters, digits, and a handful of symbols like hyphens and underscores. Anything outside that safe zone — spaces, commas, equal signs, brackets, non-ASCII characters — has to be translated into a percent-encoded sequence before a browser or server can safely pass it around. A space becomes %20, an ampersand becomes %26, and a Chinese or Arabic character becomes a multi-byte string like %E4%B8%AD%E6%96%87.

Where You'll Actually Run Into This Problem

If you're doing any of the following, you've already hit URL encoding issues — maybe without realizing it:

  • Google Analytics UTM parameters: Campaign names with spaces or special characters break your tracking if you paste them raw into a URL.
  • API calls with query strings: Sending a search term like "blue & white shoes" as a raw query parameter will confuse any API endpoint expecting clean encoding.
  • Redirects in .htaccess or Nginx configs: Copy-pasting a destination URL with unencoded characters causes redirect loops or 500 errors.
  • Sharing links with non-Latin characters: URLs for Japanese, Korean, Arabic, or Hindi content look like garbled strings in their raw form. Decoding them instantly reveals what the page is actually about.
  • OAuth and SSO tokens: The redirect_uri parameter in OAuth flows must be precisely encoded. One wrong character and authentication fails silently.

How to Use a URL Encoder/Decoder Tool — The Right Way

Most people open the tool, paste something in, click a button, and copy the result. That works. But there are smarter ways to use it depending on what you're dealing with.

  1. Encode only the value, not the whole URL. If you're building a URL like https://example.com/search?q=blue shoes&color=red&white, don't paste the entire URL into the encoder. The slashes, colons, and question mark in the base URL should stay as-is. Only encode the query parameter values: blue%20shoes and red%26white. Full-URL encoding will turn your https:// into https%3A%2F%2F, which breaks everything.
  2. Use the decoder to audit incoming URLs. If you're receiving webhook calls or redirect traffic and the URLs look like strings of percent-signs, paste them into the decoder. You'll immediately see the original parameter values, which is far faster than reading RFC 3986 with a coffee in hand.
  3. Double-check encoded spaces. Some systems expect %20 for spaces; others expect +. The difference matters in form submissions versus URL path segments. A good tool will encode spaces as %20 by default (the safer choice for modern use), but always verify when dealing with legacy APIs or older CMS platforms.

A Real-World Example: UTM Links and Campaign Tracking

Say you're running a paid campaign for a product called "Summer Sale — Up to 50% Off" and you want to tag the link with UTM parameters for Google Analytics. Your campaign name is: Summer Sale — Up to 50% Off.

Pasted raw into a URL, that becomes a nightmare: em dashes, spaces, and percent signs all need encoding. Run just that value through the encoder and you get: Summer%20Sale%20%E2%80%94%20Up%20to%2050%25%20Off.

Plug that into your full URL and it becomes a properly formed, trackable link that won't break when someone copies it into Slack, a spreadsheet, or a browser address bar. This is a two-minute fix that saves hours of debugging analytics discrepancies later.

Decoding URLs You Didn't Write

Decoding is just as useful as encoding — maybe more so. When you're auditing a competitor's tracking setup, inspecting a referral URL from your analytics dashboard, or debugging an API integration, encoded URLs are nearly unreadable at a glance.

Take this URL fragment: ?ref=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dbest%2Bseo%2Btools

Decoded, that becomes: ?ref=https://www.google.com/search?q=best+seo+tools

Instantly readable. You can see the referral source, the platform, and even the search query that brought a user to the site. This is the kind of forensic detail that's buried in encoded strings all across your analytics data.

SEO and Crawlability: The Stakes Are Higher Than You Think

Search engines handle URL encoding better than they used to, but they're not perfect — and inconsistency across your site can create real problems.

If your CMS generates URLs like /products/café-au-lait but your sitemap references /products/caf%C3%A9-au-lait, Google may treat these as two separate URLs and split link equity between them. Use the encoder to verify exactly how your CMS is outputting URLs, then make sure your canonical tags, sitemap entries, and internal links all use the same form consistently.

For international SEO, URLs with non-ASCII characters in the path (called IRIs — Internationalized Resource Identifiers) are valid but need to be percent-encoded before being passed in HTTP headers. Pasting a URL like https://example.co.jp/製品/ into an encoder gives you the HTTP-safe version that works reliably across servers, proxies, and CDNs.

Quick Situations Where You Should Reach for This Tool Immediately

  • You're getting a 400 Bad Request from an API and the docs say to check your query string formatting.
  • You're setting up a redirect rule and the destination URL has a question mark or special characters in it.
  • You're building a mailto: link with a pre-filled subject line — spaces and colons in the subject must be encoded.
  • Someone sends you a tracking pixel URL that looks like a wall of percent signs, and you need to know what it's actually doing.
  • You're working with JWT tokens or Base64-encoded values in URLs — these sometimes contain +, /, and = characters that need encoding in a URL context.

One Thing Most People Miss

There's a meaningful difference between encoding a full URL and encoding a URL component. When you have a URL that needs to be embedded inside another URL — for example, a redirect parameter like ?next=https://app.example.com/dashboard — the inner URL needs to be fully encoded so the outer URL structure stays intact. That means the inner ://, /, and ? all need to be percent-encoded, giving you something like ?next=https%3A%2F%2Fapp.example.com%2Fdashboard.

Get this wrong and you'll have broken redirects, open redirect security vulnerabilities, or login flows that send users to the wrong page entirely. A URL Encoder/Decoder tool makes this distinction trivial — just paste the inner URL in, encode it fully, and drop the result into your outer URL as the parameter value.

The Bottom Line

A URL Encoder/Decoder sits in that category of tools you don't think about until you desperately need one. Keep a tab open. When a link breaks, when an API returns a cryptic error, when a redirect behaves unexpectedly — this is often where the answer lives. Two seconds of encoding or decoding can save an hour of head-scratching.

Disclaimer: This article is for general informational and educational purposes only and does not constitute professional, financial, medical, or legal advice. Results from any tool are estimates based on the inputs provided. Always verify important details and consult a qualified professional before making decisions.