Convertam
Home📚 Learn★ FavoritesOur Story
← Back to Data Tools

URL Encode / Decode

Correctly percent-encode or decode URLs and query strings — spaces, Unicode, and reserved characters handled properly, using the browser's real URI encoding rules.

Text or URL to encode
0 B
Result
0 B

What is URL encoding?

A URL can only safely contain a specific set of ASCII characters. Anything else — a space, an accented letter, or a symbol like & or = appearing inside a value rather than as part of the URL's own structure — has to be represented as a % followed by two hex digits (its byte value). A space becomes %20; "café" becomes caf%C3%A9. This is called percent-encoding, and it's what makes it safe to put arbitrary text — a search term, a name, a URL itself — inside a URL without breaking it.

What can you do with this tool?

  • URL Encode — turn plain text or a raw value into its safely percent-encoded form.
  • URL Decode — turn a percent-encoded string back into readable text.
  • Swap — move the current output into the input and flip modes, for quick back-and-forth checking.
  • + for spaces toggle — switch between %20 (general percent-encoding) and + (form/query-string encoding) for spaces specifically.

Supported characters and edge cases

Handles spaces, reserved characters (&, =, ?, #, +), and any Unicode text correctly, using the browser's native encodeURIComponent/decodeURIComponent — not a hand-written character-replacement table, which is exactly the kind of ad-hoc approach that quietly breaks on Unicode or an unusual symbol.

When should you use it?

Use URL Encode when you're building a query string or URL by hand and need a value (a search term, a name with spaces or accents) to survive inside it safely. Use URL Decode when you've been handed an encoded URL or query parameter and want to read what it actually says.

Limitations

  • This encodes a single value at a time (a query parameter, a path segment) rather than parsing and selectively encoding parts of a full URL — paste one value, not a whole multi-parameter URL, for the most predictable result.
  • Decoding text that isn't validly percent-encoded produces a clear error rather than a guess.

Frequently asked questions

What is URL encoding (percent-encoding)?
URLs can only safely contain a limited set of ASCII characters. URL encoding (percent-encoding) represents any other character — a space, an accented letter, a symbol like & or = when it appears inside a value rather than as URL structure — as a % followed by its byte value in hex, e.g. a space becomes %20.
Why does a space sometimes become %20 and sometimes +?
Both are valid in different contexts. %20 is the general percent-encoding for a space anywhere in a URL. + specifically means "space" only inside application/x-www-form-urlencoded content — the format an HTML form or a hand-built query string traditionally uses. This tool defaults to %20 (the generally correct choice) with a toggle for + when you specifically need form encoding.
Does this handle Unicode characters correctly?
Yes — it uses the browser's built-in encodeURIComponent/decodeURIComponent, which correctly UTF-8-encode any Unicode text (accented letters, Chinese, Arabic, emoji) rather than a hand-written character-replacement table that only covers ASCII.
What's the difference between encoding a whole URL and encoding one value?
Encoding a single query parameter VALUE should escape every reserved character (including &, =, ?, #) so it can't be mistaken for URL structure — that's what "URL Encode" does here. Encoding a full URL should leave structural characters like :, /, ?, & alone since they're meaningful, only escaping things that are never valid unescaped (like a literal space). Use this tool on one value at a time — a full query string or path segment — for the most predictable result.
What happens if I try to decode text that isn't validly encoded?
You get a clear error explaining the input doesn't look like valid percent-encoding, rather than throwing an unhandled error or silently returning something wrong.

Related Tools

Base64 Encode / Decode →Text Cleaner Studio →All Data Tools →