webutilkit

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text, entirely in your browser. Nothing is uploaded.

Base64

How it works

Base64 turns arbitrary bytes into a string of 64 printable characters (A–Z, a–z, 0–9, +, /), padded with = to a multiple of four characters. This tool encodes your text’s UTF-8 bytes to that alphabet, and decodes it back the same way — both directions run with the browser’s built-in btoa and atob, never a server.

Not encryption

Base64 is an encoding, not a cipher. It has no key and hides nothing — anyone can decode it back to the original text in one step. Use it to make binary-safe text for things like data URLs or embedding in JSON, not to keep anything secret.

Why decoding sometimes fails

A valid Base64 string always decodes to some sequence of bytes, but those bytes are only shown here if they form valid UTF-8 text. If you paste the Base64 of an image or other binary file, decoding correctly reports an error instead of printing garbled characters.

Frequently asked questions

Is my text uploaded anywhere?

No. Encoding and decoding both happen in your browser with the standard Base64 APIs; nothing is sent to a server.

Why did decoding fail on my input?

Either the text contains characters outside the Base64 alphabet, or it decodes to bytes that are not valid UTF-8 text — for example if it was actually an image or other binary data.