Development & Design 80

URL encoding and decoding

Encode or restore special characters in URL components in percent format.

Input

The example value has been entered. Check it immediately or change the value.

Run with Ctrl or ⌘ + Enter

Input is processed in the browser. Refreshing returns a sample value.

Result

Check or change the value using the example value result.

Based on components, not URLs. The plus sign is not replaced with a space.

Share result

Share the tool link and result text together. No URL is included in the result. Check the below content and then share it.

Calculation·conversion criteria

Performs percent encoding on individual URL values.

encodeURIComponent / decodeURIComponent

Input example

One space → %20

Encoding A&B as components becomes A%26B. Used when passing & as part of a value instead of as a separator.

How to use

  1. Use the entered example value or change the input or direction items.
  2. Click Verify result and check the following result.
  3. Result can be copied if needed.

Frequently Asked Questions

Why does the plus sign not become a space?

This tool uses decodeURIComponent rules to keep the + unchanged. To interpret + in form query as a space, use the query string analyzer. It is not intended for encoding the entire URL at once.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors