URL Encoder / Decoder

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

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.

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

Enable JavaScript to process content locally in your browser.

How to use

Encode one query parameter safely

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

Step by step

  1. Provide the source using: Input text or URL parameter.
  2. Set: Encode parameter / Decode parameter. Use the reference below to choose the options that fit your task.
  3. Choose: Copy result. Inspect the result before copying, downloading or using it elsewhere.
  4. 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.

Choosing the settings

OptionWhat changes
Encode parameterFor 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.
Decode parameterIf decoding fails, check for incomplete percent escapes, such as a lone % or %2. Recover the original parameter value and retry. Do not repeatedly decode until a value merely looks readable: another decode can change its meaning.

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.

If it is not working

  • If decoding fails, check for incomplete percent escapes, such as a lone % or %2. Recover the original parameter value and retry. Do not repeatedly decode until a value merely looks readable: another decode can change its meaning.

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.