Skip to content
SnapTools

URL Encoder / Decoder

Runs in your browser

Encode or decode URL-safe strings. Use encode for query params and links; use decode to read encoded URLs or API responses.

About this tool

URL encoding (percent-encoding) turns special characters into a form that can be safely used in URLs and query strings. For example, spaces become %20 and & becomes %26. Decoding reverses this so you can read human-readable text from an encoded URL or API response.

How to use

  1. Paste the text or URL segment you want to encode or decode.
  2. Click Encode to convert special characters to percent-encoded form (e.g. for query parameters).
  3. Click Decode to convert percent-encoded text back to readable form.

When to use this tool

  • Building URLs with query parameters that contain spaces or special characters.
  • Reading encoded URLs from logs or API responses.
  • Preparing strings for use in URL-safe contexts (e.g. redirect_uri, state).
  • Debugging broken links that show percent-encoded segments.

Tips

  • Encode only the value part of a query parameter, not the whole URL, to avoid double-encoding.
  • Decoding an already-decoded string is safe; decoding twice can turn %25 into % and then into nothing.

FAQ

What is URL encoding?
URL encoding (percent-encoding) replaces reserved or unsafe characters with % followed by two hex digits (e.g. space → %20). It lets you safely put special characters in URLs.
Encode the whole URL or just a part?
Usually encode only the part that needs it (e.g. the query value). Encoding the full URL can break the scheme and path.