Developer Utility

Base64 Encoder Decoder

Convert UTF-8 text to Base64 or decode Base64 back to readable text without leaving the browser.

Use it for API payload inspection, quick debugging, or preparing copy-safe encoded snippets.

What it does

Encoding handles Unicode text safely. Decoding validates input and reports malformed Base64 instead of failing silently.

Convert text and Base64

How it works

Base64 represents binary data using 64 safe ASCII characters. This page first converts your text to UTF-8 bytes, then encodes those bytes into Base64. Decoding performs the reverse process back into readable text.

Encoding formula

UTF-8 bytes are grouped into 24-bit chunks and emitted as four 6-bit Base64 characters.

Decoding checks

Whitespace is trimmed and invalid characters or malformed padding trigger a visible error instead of broken output.

Use cases

Handy for debugging headers, quick test payloads, or verifying how Unicode text behaves after encoding.