Free online URL encoder and decoder
This URL encoder and decoder converts text to and from percent-encoding —
the format web addresses use to carry spaces, symbols, and non-English
characters safely. Encode a value before dropping it into a query string,
or decode a messy %20-riddled link back into readable text.
Everything converts live as you type and runs entirely in your browser, so
private links and tokens never leave your device.
How to encode or decode a URL
- Choose Encode or Decode with the toggle at the top.
- When encoding, pick Component to escape a single value or Full URL to preserve a whole address.
- Type or paste your text into the input box.
- Read the converted output, then click Copy to grab it or Swap to feed the result back in.
Component vs Full URL — which mode?
Component mode uses encodeURIComponent. It
escapes every reserved character — including &,
=, ?, /, and # — because
it assumes you are encoding one piece, such as a single query-string value
or path segment. Full URL mode uses encodeURI,
which leaves those structural characters alone so an entire address like
https://example.com/a b?x=1 stays valid while only illegal
characters such as spaces get escaped. Reach for Component when building a
parameter and Full URL when cleaning up a complete link.
Related encoding tools
Working with data as well as links? Convert binary and text with our Base64 encoder / decoder, or escape markup for the web with the HTML entity encoder. All of them run locally in your browser with nothing uploaded.