Skip to content
FreeToolsKit.app

URL Encoder & Decoder

Percent-encode text for a URL, decode percent-encoded text back to readable characters, and inspect a raw query string parameter by parameter. URL encoding (percent encoding) replaces characters that would break or change a URL with %XX codes for their UTF-8 bytes, so Arabic, Chinese, accented letters and emoji work. Choose RFC 3986 component encoding (space → %20) or WHATWG form encoding (space → +); everything happens in your browser.

  • Free to use
  • No account required
  • Converted in your browser

URL Encoder & Decoder

Loading tool…

Was this tool helpful?

Good to know

Useful for
Building links with parameter values that contain spaces, &, = or non-English text, reading encoded values from logs and analytics, checking tracking links made with the UTM Builder (/marketing/utm-builder), finding malformed % escapes, and seeing repeated query parameters in their real order.
Accepts
Text up to 1 MiB as UTF-8 to encode, encoded text up to 3 MiB (decoding to at most 1 MiB), or a raw query string up to 1 MiB with at most 1,000 parameters
Produces
Percent-encoded or decoded text, or an ordered list of query parameters with a canonical query string and a JSON export, with a preview of the first 4,096 characters on the page

Privacy

Text and query strings are encoded, decoded and parsed in your browser. They aren't uploaded, logged, sent to analytics or an AI service, or saved in browser storage, cookies or the page address, and everything disappears when you reload the page. Query strings often contain tokens or personal data, so don't share decoded values publicly.

Limitations

  • Encode one component (a path segment, parameter name or value) at a time. Encoding a whole URL would also encode its :, /, ?, & and = and break it.
  • Decoding is strict and runs exactly once: a % must be followed by two hexadecimal digits, the bytes must be valid UTF-8, and nothing is repaired or replaced. %2520 becomes %20; press Decode again for a second pass.
  • Only UTF-8 is supported. Legacy encodings such as Windows-1252 (%E9 for é) and non-standard %u escapes are reported as errors.
  • The Query Inspector takes raw query strings, not full URLs. It rejects a raw #, empty parts such as && and more than 1,000 parameters instead of guessing.
  • URL encoding is not encryption and says nothing about whether a link is safe. The tool never opens, fetches or checks any URL.

Tips

  • %20 and + both mean a space in a query string, but only %20 means a space in a URL path. A literal plus sign must be sent as %2B.
  • Building campaign links? The UTM Builder (/marketing/utm-builder) encodes each parameter for you.
  • Decoded a JSON or Base64 value? Check it with the JSON Formatter (/text/json-formatter) or the Base64 Encoder & Decoder (/text/base64-encoder-decoder).

How to encode or decode a URL

  1. Choose Encode, Decode or Query Inspector.
  2. For Encode or Decode, pick URI component (RFC 3986, space as %20) or Form/query value (WHATWG, space as +).
  3. Type or paste your text, or paste a raw query string — only the part after the ? and before any #.
  4. Press Encode, Decode or Analyze query.
  5. Copy the result or download it: encoded or decoded text as .txt, parsed parameters as JSON, or the canonical query string as .txt.

Frequently asked questions

What is URL encoding?

URL encoding, also called percent encoding, writes characters that aren't allowed or have a special meaning in a URL as a % followed by two hexadecimal digits. Text is first turned into UTF-8 bytes, and each byte that needs escaping becomes one %XX code, so a space becomes %20 and é becomes %C3%A9. The rules are defined in RFC 3986; the WHATWG URL Standard defines the related form encoding used in query strings.

How do I encode and decode a URL component?

Choose Encode, pick URI component (RFC 3986), paste the value and press Encode: hello world becomes hello%20world and a/b?c becomes a%2Fb%3Fc. To reverse it, choose Decode with the same format and press Decode. Encode each part (a path segment, parameter name or value) on its own rather than a whole URL, because a full URL's :, /, ?, & and = would be encoded too.

What is the difference between %20 and +?

%20 is the percent-encoded space and works anywhere in a URL. A + means a space only in form-encoded data such as query strings (WHATWG application/x-www-form-urlencoded); in a URL path it's just a plus sign. URI component mode encodes a space as %20 and leaves a raw + as +, while form mode encodes a space as + and decodes both + and %20 to a space.

Why does a plus sign become %2B?

Because in query strings a raw + is read as a space, a real plus sign has to be written as %2B so it isn't changed. Both formats here encode + as %2B: a+b becomes a%2Bb. When decoding, %2B always becomes a literal +, so it stays distinguishable from a space.

Can I URL-encode Arabic, Chinese and emoji?

Yes. Text is converted to UTF-8 and every byte is percent-encoded, so مرحبا becomes %D9%85%D8%B1%D8%AD%D8%A8%D8%A7, 中文 becomes %E4%B8%AD%E6%96%87 and 😀 becomes %F0%9F%98%80. Decoding gives back exactly the same characters, without changing their Unicode normalization. Text containing a broken emoji (an unpaired surrogate) is rejected instead of being silently altered.

What causes a malformed percent-encoding error?

Every % must be followed by two hexadecimal digits, so a lone %, %A or %GG is malformed — write a literal percent sign as %25. The decoded bytes must also be valid UTF-8: sequences such as %C3%28 or an incomplete %E2%82, overlong forms and encoded surrogates are rejected. The tool reports the position and never repairs, skips or replaces the bad part.

Can I inspect repeated URL query parameters?

Yes. Paste the query string (the part after ? and before #) into the Query Inspector and press Analyze query. Repeated names such as source=google&source=email are listed separately in their original order, a name without = is shown as having no value, and name= as an empty value. You can export the parameters as JSON or copy a canonical query string that decodes to the same parameters.

Is URL encoding secure, and is my data uploaded?

URL encoding isn't encryption: anyone can decode it, and it doesn't make a link safe. This tool never opens, fetches or checks the URLs you paste. Everything runs in your browser — your text and query strings aren't uploaded, logged, sent to analytics or saved in browser storage, cookies or the page address, and reloading the page clears them. Query strings can contain secrets, so don't share decoded values publicly.