Base64 Encode / Decode
Convert between plain text and Base64. Supports full UTF-8.
100% freeRuns in browserNo data sent to servers
Input
Output
File → Base64
Base64 → File download
Also try: AI Humanizer · AI Detector · Email Writer 3 free uses/day
How It Works
1
Enter your text or file
Paste text into the input field, or switch to File mode to select a binary file.
2
Encode or Decode
Click Encode to convert text to Base64, or Decode to convert Base64 back to plain text.
3
Copy the output
Click Copy to grab the result. In File mode, you can download decoded files directly.
FAQ
What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data as ASCII characters. It is commonly used to embed images in HTML/CSS, transmit data in URLs, and encode email attachments.
Does this handle Unicode and UTF-8?
Yes. The tool properly handles multi-byte UTF-8 characters including emoji, CJK characters, and accented letters. It encodes and decodes them correctly.
Is my data secure?
Yes. All encoding and decoding happens locally in your browser. No data is sent to any server.
Can I encode a file (image, PDF) with this tool?
Yes. Switch to "File" mode using the tab at the top of the tool, select any file, and click "File → Base64". The full Base64 string is displayed and ready to copy. You can also paste a Base64 string in File mode and click "Base64 → Download File" to decode it back to binary.
What is URL-safe Base64 and when do I need it?
Standard Base64 uses +, /, and = which have special meaning in URLs. URL-safe Base64 (Base64url) replaces + with - and / with _, and omits padding =. It is used in JWTs, OAuth tokens, and URL parameters. If you need URL-safe output, replace those characters after encoding.
What is the size overhead of Base64 encoding?
Base64 increases data size by approximately 33%. Every 3 bytes of input become 4 characters of output. This overhead is why Base64 is not used for large file transfers, but is acceptable for tokens, short strings, and embedded images.
Does this tool work on mobile devices?
Yes. The interface is fully responsive. You can paste text, encode or decode, and copy results on any phone or tablet. File mode also works on mobile browsers that support file selection.
How does this compare to using btoa/atob in JavaScript or base64 on the command line?
JavaScript's btoa/atob only handle ASCII and will break on multi-byte characters. The command-line base64 utility works well but requires a terminal. This tool handles full UTF-8 including emoji, CJK, and accented characters — no setup, no encoding workarounds.
When would I use Base64 encoding?
Common use cases: embedding small images as data URIs in HTML/CSS, sending binary data in JSON payloads, encoding email attachments (MIME), transmitting data through text-only channels, and creating simple obfuscation (not security) for strings.
Can I decode a Base64 data URI (e.g., data:image/png;base64,...)?
Yes. Paste the Base64 string (without the data:... prefix) in File mode, and click "Base64 → Download File" to reconstruct the binary file. For text content, use Text mode to decode the Base64 portion directly.
Is Base64 encoding the same as encryption?
No. Base64 is an encoding scheme, not encryption. Anyone can decode a Base64 string — it provides zero security. Use it for data transport compatibility, not for hiding sensitive information. For actual encryption, use AES or similar algorithms.
What other Coda One tools complement the Base64 tool?
The <a href="/ai/dev/jwt">JWT Decoder</a> works directly with Base64URL-encoded tokens. The <a href="/ai/dev/url-encode">URL Encoder</a> handles percent-encoding for URLs. The <a href="/ai/dev/hash">Hash Generator</a> produces fixed-length digests instead of reversible encodings.
AI-powered writing tools
10 writing tools free to try — humanize, rewrite, summarize, translate, and more.
Coda One's Base64 Encode / Decode is a free online developer tool that runs entirely in your browser. No data is sent to any server -- everything is processed locally for maximum privacy and speed. Part of the Coda One developer tools suite.
More:
All Tools · Humanizer · Detector · Rewriter · CSV to JSON · JWT Decoder · Markdown Editor · Timestamp