Text utilities

Base64 Encoder and Decoder

Convert UTF-8 text to Base64 or decode Base64 text in your browser.

Text stays in your browserCopy your result
Data workspace
Data workspace

Check delimiters and structure before downloading the output.

See the method

Your source data

Runs on your device

Your transformed data

Your result

Let’s calculate.

Use the Calculate button to see your result.

Your content is processed locally.

How to use this tool

  1. Enter text or base64, mode.
  2. Select Update result to view the result.
  3. Check the method and assumptions below before using the result.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
Text or Base64Keep the structure and separators shown in the sample. Line breaks are retained in this input.Hello
ModeChoose Encode UTF-8 text / Decode to UTF-8 text.Encode UTF-8 text

Result for these sample inputs

SGVsbG8=

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

The method, explained

UTF-8 text is converted to bytes, then encoded with the standard Base64 alphabet. Decoding reverses the process and requires valid UTF-8 bytes.

A WORKED EXAMPLE

The text Hello encodes as SGVsbG8=. Decoding that value returns Hello.

What to keep in mind

This is a text utility, not a binary file converter. URL-safe Base64 is not automatically normalized. Encoding is reversible and is not encryption.

Common questions

Can I encode non-English text?

Yes. UTF-8 represents Unicode text before the bytes are Base64 encoded.

Why can decoding fail?

The input may use invalid Base64 characters or decode to bytes that are not valid UTF-8 text.

Methodology maintained by ClarityKit. How these tools are built and checked.