Base64 Converter
Encode and decode Base64
Last updated:Base64 encoding converts binary data or text into an ASCII-safe string using A-Z, a-z, 0-9, +, and / — the standard format for embedding images in CSS data-URLs or transmitting binary over JSON APIs. LlamaPDF encodes and decodes locally using the browser's btoa/atob with Unicode-safe handling.
Your file stays on your device — never uploaded
How to encode or decode Base64
- 1
Paste your text or Base64 string into the input field above.
- 2
Select Encode to convert plain text into a Base64 string, or Decode to convert a Base64 string back into readable text.
- 3
Your result appears instantly. Copy the output to your clipboard with one click. All encoding and decoding happens locally in your browser — nothing is sent to a server.
Why use our Base64 tool?
Base64 encoding is widely used in web development, email systems, and APIs to safely transmit binary data as text. Whether you need to encode an image for embedding in HTML, decode a token from an API response, or troubleshoot encoded data in a URL, this tool makes the conversion instant and painless.
For URL-specific encoding, check out our URL encoder. If you need to generate checksums rather than reversible encodings, the hash generator is the right tool.
What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 ASCII characters (A-Z, a-z, 0-9, +, and /). It is commonly used to embed images in HTML or CSS, transmit binary files over text-only protocols like email (MIME), and encode authentication tokens and API keys. Base64 increases data size by roughly 33%, but ensures the data passes safely through systems that only handle text.