← All tools Developer utility

Base64 Encode & Decode

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

Base64 encoder and decoder

0 characters
Result 0 characters
Private by design: Your data is encoded and decoded only in this browser and is never uploaded.

What is Base64 encoding?

Base64 represents binary or text data using a set of printable ASCII characters. It is commonly used in APIs, email attachments, data URLs and configuration values.

Base64 is an encoding format, not encryption. Do not use it to protect passwords or other secrets.

Common Base64 encode and decode workflows

Base64 is useful when a system needs to carry text or binary-looking data through a channel that expects plain characters. Developers often see it in HTTP Basic authentication examples, JSON API payloads, email MIME parts, small data URLs, certificates, keys and configuration snippets.

Standard Base64 uses +, / and padding with =. URL-safe Base64 replaces characters that can be awkward in URLs, which is why it is common in tokens and web-safe identifiers.

Why does Base64 decoding fail?

Decoding can fail when the input contains invalid characters, has missing padding or was encoded with a different variant. Try enabling URL-safe mode when the value uses - and _ instead of + and /.

Is Base64 secure?

No. Anyone can decode Base64. Treat decoded values as visible text and never rely on Base64 as a security layer for secrets, passwords or private tokens.