Calculator: URL component encoding

Enter the labelled inputs to calculate: Encoded text; Decoded text.

Encoded text
A%20B
Decoded text
A B

How the calculation works

UTF-8 ⇄ %HH

Text operations use UTF-8 and run locally. Empty text is valid. Base64 decoding requires standard padding and valid UTF-8; URL decoding rejects malformed percent escapes.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

UTF-8 ⇄ %HH

What assumptions apply?

Text operations use UTF-8 and run locally. Empty text is valid. Base64 decoding requires standard padding and valid UTF-8; URL decoding rejects malformed percent escapes.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently from the sources below. Last passed: .

# Inputs Expected result
1
Text = a b&c=d
Encoded text = a%20b%26c%3Dd
Encoded text: a%20b%26c%3Dd
Decoded text: a b&c=d
2
Text = Київ
Encoded text = %D0%9A%D0%B8%D1%97%D0%B2
Encoded text: %D0%9A%D0%B8%D1%97%D0%B2
Decoded text: Київ
3
Text = it's 100%
Encoded text = it%27s%20100%25
Encoded text: it's%20100%25
Decoded text: it's 100%

Sources

How we test our calculators →

Also try:

Back to category →