Encoding
Base64 Encode and Decode
Encode text to Base64 or decode Base64 back to readable text in the browser.
How to use this tool
Choose Encode to turn text into Base64, or Decode to turn Base64 back into readable text.
Use the text file drop zone when you want to encode local text without uploading it.
For binary files or images, use the Base64 File Converter or Base64 Image Converter instead.
Base64 is encoding, not encryption
Base64 makes bytes safe to move through text-only formats such as JSON, HTML, CSS, email, and URLs.
It does not protect secrets. Anyone can decode Base64 if they have the encoded string.
Base64 output is usually about one third larger than the original bytes.
Common Base64 decode problems
Missing padding can break some decoders. Padding is the `=` characters at the end of many Base64 strings.
Some systems use URL-safe Base64 with `-` and `_` instead of `+` and `/`.
Decoded binary data may look broken in a text decoder. Use a file or image Base64 tool for binary content.
Examples
Encode UTF-8 text
InputLumio UtilsOutput
THVtaW8gVXRpbHM=
Data URL usage
A data URL includes the media type and Base64 payload. It is useful for small inline assets, but not for large files.
Inputdata:text/plain;base64,THVtaW8=
FAQ
Is Base64 secure for passwords or tokens?
No. Base64 is reversible encoding, not encryption or hashing. Do not treat Base64 text as protected secret data.
Why is my Base64 output longer than the original text?
Base64 represents binary data using a limited text alphabet, which usually increases size by about 33 percent.
Can this decode images or PDFs?
This text tool is meant for readable text. Use Base64 Image Converter or Base64 File Converter for binary data.
Is the input sent to the server?
No. Text encoding and decoding happens in your browser.