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.
- Pick Component value for one parameter, Full URL for a whole address, or Form value for the + space convention.
- Type or paste your text into the input box, or load an example for the selected mode.
- 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. Full URL decoding
preserves escaped reserved characters so a value such as %26
does not turn into a new query separator. Form value mode is for one
form-encoded value: spaces become + and literal plus signs become %2B.
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.