URL Component Encoder and Decoder

Encode a single value or decode URL percent escapes without leaving this page. Choose form decoding only when plus signs mean spaces.

Result

Enter values and select Calculate.

How is this calculated?

Percent escapes represent UTF-8 bytes. Form decoding additionally reads raw plus signs as spaces.

Worked example: Encode a workshop label

The space is %20; a literal plus is %2B.

Method and limits

Encode a component, not a whole URL, if you need delimiters such as / and ? to keep their URL meaning. Standard decoding preserves a literal plus sign.

How to use this calculator

  1. Choose Encode for plain text, Decode for percent escapes, or Decode form value when a raw plus sign represents a space.
  2. Paste a single value, not a complete URL, then select Convert component.

Encode a workshop label

Café + tea becomes Caf%C3%A9%20%2B%20tea. Regular decoding restores the label. Form decoding additionally reads raw + as a space.

Choose a component instead of an address

A room name or search phrase is a value. Encoding an entire address also changes separators such as / and ?, which can change how the address is interpreted.

Read the byte escapes

An escape is a percent sign and two hexadecimal digits. The UTF-8 bytes C3 A9 represent é, so one visible letter can need two escape groups.

Frequently asked questions

Does Decode turn + into a space?
No. Use Decode form value for that behavior. Both decoding modes turn %2B into a literal plus.
Why does a percent sign give an error?
A literal percent sign in encoded text must be written as %25. An incomplete escape or invalid UTF-8 byte sequence is rejected.
Is my text sent elsewhere?
No. The conversion runs locally and does not open the text as an address.

Common mistakes and limits

Sources & methodology

Related calculators