π‘ Base64 Encoder & Decoder β Encode and Decode Text Free
Paste text to turn it into Base64, or paste Base64 to recover the original text. Encoding and decoding happen entirely on your device so sensitive strings never leave your browser.
What this tool does
The Base64 encoder converts readable text into the Base64 alphabet and the decoder reverses the process. It is useful when you need to embed text in a configuration value, a data URL, an email header or a JSON field that expects plain ASCII characters.
Base64 is an encoding, not encryption. It turns arbitrary bytes into 64 printable symbols so that binary or non-ASCII data can travel through systems that only handle text. Anyone who sees a Base64 string can decode it trivially. Never use it to protect a password, an API key or personal data; use encryption or a secret manager for that.
The encoder reads your text as UTF-8, so accented letters, emoji and non-Latin scripts are handled correctly. The decoder validates the input, ignores whitespace, and rejects strings whose length or characters cannot form valid Base64. Output is standard Base64 with + and / characters, not the URL-safe variant.
When to use it
- Encode a short text snippet for a data URL or a test fixture.
- Decode a Base64 value copied from a log, cookie or API response.
- Check whether a suspicious string is simply encoded text.
- Prepare an ASCII-safe representation of UTF-8 text for an older system.
- Verify that two encoded strings differ after a small edit.
How it works
- Paste plain text into the box and press Encode to Base64 to get the encoded version.
- Paste a Base64 string and press Decode from Base64 to recover the original text.
- All processing uses your browser's built-in text and binary handling; nothing is sent to a server.
Worked example
Encode the word "ToolNova". Its UTF-8 bytes are grouped into threes and mapped to the Base64 alphabet, producing "VG9vbE5vdmE=". Decoding that string returns "ToolNova". For a non-ASCII example, "cafΓ©" encodes to "Y2Fmw6k=" because the Γ© is two UTF-8 bytes; decoding gives the original word back, not a mangled character.
- Encode an API key or small payload so it can travel safely inside a JSON string or header.
- Decode a Base64 string you found in a log or config to see the original message.
- Turn a short snippet of text into Base64 for testing an encoder on another system.
Accuracy and limitations
- Text only. The tool does not accept file uploads, so it cannot encode an image, PDF or other binary file.
- Standard Base64 is used. URL-safe Base64 with - and _ instead of + and / must be converted before decoding, and existing line breaks are ignored.
- Invalid input is rejected rather than partially decoded, so a truncated string returns an error instead of a misleading result.
- Base64 increases size by roughly one third; it is not compression and offers no confidentiality.
Privacy and data handling
Encoding and decoding happen entirely in your browser with the Web APIs. Your text is never sent to ToolNova or stored.
Frequently asked questions
Is my text uploaded when I encode or decode?
No. Encoding and decoding run completely inside your browser using JavaScript. The text you paste never leaves your device.
Does it handle Unicode and emoji correctly?
Yes. The tool uses UTF-8 encoding, so accented characters, emoji and non-Latin scripts survive the round trip unchanged.
What happens if the Base64 is invalid?
The decoder checks the alphabet and padding and shows a clear error instead of producing garbage output.
Is Base64 secure?
No. It is a reversible encoding with no key. Treat a Base64 string as public text and encrypt anything sensitive before encoding it.
Why does my Base64 string end with equals signs?
The = characters pad the final group to a multiple of four symbols. They carry no data and are required by the standard form, though some systems omit them.
Can I decode a JWT segment with this tool?
JWT segments use Base64url and are missing padding, so they may need conversion first. The JWT decoder tool handles that automatically.
Related tools
More Encoding tools βURL Encoder & Decoder
Percent-encode or decode URLs and query values instantly β free and private.
Binary Encoder & Decoder
Convert any text to binary (0s and 1s) or decode binary back to readable text.
HTML Entity Encoder / Decoder
Encode and decode HTML entities for safe embedding or readable text.
Morse Code Translator
Translate text to International Morse code and decode dots and dashes locally.