URL Encoder / Decoder

Encode or decode URL parameter values and percent-encoded text.

Processed on this page. No uploads. Your input is not saved.

Up to 100,000 UTF-16 units; some emoji use multiple units

Enable JavaScript to process content locally in your browser.

How to use

For individual URL parameter values, using encodeURIComponent / decodeURIComponent. Encoding escapes /, ? and &. Do not use an encoded full URL as a link. Decoding does not turn + into spaces and never visits the input URL.

Encode one query parameter safely

Paste a single parameter value and encode it, or paste a percent-encoded value and decode it. Copy the result into the appropriate parameter of your URL.

Example and expected result

“tea & cake” encodes as tea%20%26%20cake. Encode the value, not an entire URL whose separators you want to keep. A plus sign stays + when decoding; form-style plus-to-space conversion is not performed.