Calculator: UTF-8 Base64 encoding and decoding

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

Encoded text
SGVsbG8=
Encoded text URL
SGVsbG8
Decoded text
Hello

How the calculation works

UTF-8 ⇄ Base64; Base64url

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 ⇄ Base64; Base64url

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 = Hello, World!
Encoded text = SGVsbG8sIFdvcmxkIQ==
Encoded text: SGVsbG8sIFdvcmxkIQ==
Encoded text URL: SGVsbG8sIFdvcmxkIQ
Decoded text: Hello, World!
2
Text = Київ
Encoded text = 0JrQuNGX0LI=
Encoded text: 0JrQuNGX0LI=
Encoded text URL: 0JrQuNGX0LI
Decoded text: Київ
3
Text = a?b>c
Encoded text = YT9iPmM=
Encoded text: YT9iPmM=
Encoded text URL: YT9iPmM
Decoded text: a?b>c

Sources

How we test our calculators →

Also try:

Back to category →