BitTools Logo

URL Encoder/Decoder — by Bittools

URL encoding converts characters into a percent-encoded form so they can be safely transported inside URLs. This prevents reserved characters from breaking query strings or paths.

How to use the URL Encoder/Decoder

  1. Paste text (or an encoded string) into the input box.
  2. Click Encode to percent-encode reserved characters.
  3. Click Decode to restore an encoded string.
  4. Open the URL Encoder/Decoder

Examples

Encode query parameter value

value = "a&b=c d"
encodeURIComponent(value) → "a%26b%3Dc%20d"

Encode full URL (use encodeURI)

encodeURI("https://example.com/a file?q=a&b=c") →
"https://example.com/a%20file?q=a&b=c"

Best practices

Common pitfalls

FAQs

Does the tool upload my data?

No. All encoding/decoding happens in your browser.

Why do I see %20 instead of +?

%20 is the standard for spaces. + is used in application/x-www-form-urlencoded bodies.

Is JSON safe to put in a URL?

Encode JSON as a value with encodeURIComponent, but watch URL length limits.

Try the tool: URL Encoder/Decoder