Base64 Encoder and Decoder

Encode UTF-8 text as Base64 or decode Base64 to readable text. The conversion runs directly in your browser.

Base64 Encoder and Decoder

Enter the UTF-8 text that you want to encode as Base64.

What this tool does

This tool encodes UTF-8 text as Base64 or decodes valid Base64 strings back to readable UTF-8 text.

The conversion runs entirely in the browser and does not send the entered value to petuja.tools.

How to use the tool

  1. Choose whether you want to encode text or decode Base64.
  2. Paste the matching value into the input field and start the conversion.
  3. Use the button below the fields to copy the result when needed.

Useful applications

  • Represent text as Base64 for a test case or technical documentation.
  • Make a Base64 string from a configuration or interface readable.
  • Compare UTF-8 text with the output of a Base64 implementation.

Notes and limitations

  • Base64 is an encoding, not encryption. Its output does not protect the original text from being read.
  • The tool processes UTF-8 text. Files and other binary data need a tool designed for that input.

Frequently asked questions

Is my input sent to a server?

No. Encoding and decoding run with JavaScript directly in your browser.

Why is my Base64 string rejected?

It may contain invalid characters, invalid padding, or data that does not produce UTF-8 text.