CalcHive

Base64 Encode & Decode

Encode or decode Base64 strings instantly in your browser. Supports text and file input. Free, private, no data sent to servers.

Examples

Simple text

In:Hello, World!
Out:SGVsbG8sIFdvcmxkIQ==

JSON data

In:{"user":"john","role":"admin"}
Out:eyJ1c2VyIjoiam9obiIsInJvbGUiOiJhZG1pbiJ9

HTML snippet

In:<h1>Welcome</h1>
Out:PGgxPldlbGNvbWU8L2gxPg==

How to Use Base64 Encode & Decode

  1. Select whether you want to Encode or Decode.
  2. Paste or type your text in the input area.
  3. The result appears instantly in the output area.
  4. Click "Copy" to copy the result to your clipboard.

What is Base64?

Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format. It is commonly used to embed images in HTML or CSS, encode data in URLs, transmit binary data over text-based protocols like SMTP (email), and store complex data in JSON or XML formats.

The name "Base64" comes from the 64 characters used in the encoding alphabet: uppercase letters (A-Z), lowercase letters (a-z), digits (0-9), and two additional characters (+ and /). The = character is used for padding.

Frequently Asked Questions

Related Tools