Skip to content
toolbelt

URL Encoder/Decoder

Percent-encode and decode URLs. Safely escape query parameters, path segments, or full URLs to ensure they are valid and won't break during browser routing or API requests.

read guide
Input0 ln / 0 ch
Output
ready
local / nothing uploaded

About this tool

The URL Encoder and Decoder safely escapes and unescapes special characters in URLs. This ensures that spaces, ampersands, and unicode characters do not break your query parameters or API requests.

How to use it

  1. Paste your URL or text.
  2. Click Encode Component, Encode URI, or Decode.
  3. Copy the formatted result.

Examples

Encoding a space

hello world
hello%20world

Limits and notes

  • encodeURIComponent encodes all structural characters.
  • encodeURI preserves structural characters like /.

Frequently asked questions

What is %20?
It is the percent-encoded representation of a space.
Why do I get errors decoding?
You may have an invalid percent sequence, like a stray % symbol.

Want the details? Read the full guide: The Double-Encoding Bug You Will Hit Eventually.