Base64 Encoder / Decoder

Base64 Encoder & Decoder — encode text or files to Base64, decode back to text. URL-safe variant, file upload, instant copy. Free, no signup.

Plain text input
Awaiting input
Encoded output

About Base64 Encoder / Decoder

Frequently asked questions

Base64 is a binary-to-text encoding that represents binary data using only 64 printable ASCII characters. It exists because some systems (email, URLs, JSON, XML) can't safely transmit raw binary bytes. Common uses: embedding small images in CSS or HTML (data URIs), encoding API tokens, attaching files in email, storing binary data in JSON or YAML.

Standard Base64 uses three special characters that can break inside URLs: `+`, `/`, and `=`. The URL-safe variant (RFC 4648 §5) replaces them with `-`, `_`, and removes trailing `=` padding. Use URL-safe when embedding Base64 in URLs, query strings, JWT tokens, or file paths.

Yes. Click 'Upload file' in Encode mode to upload any file — the tool converts its raw bytes to Base64. Common use: encoding an image so you can embed it directly in HTML/CSS as a `data:` URI, or attaching binary data to a JSON API request.

No. Everything runs in your browser using the native `btoa` / `atob` functions and `TextEncoder`. Your text and files never leave your device. This matters when encoding credentials, internal tokens, or sensitive data.