Browser data boundary
Base64 encoding is not encryption or safe storage
Base64 converts bytes into text characters that are convenient for certain data-transfer contexts. It does not hide content from someone who has the encoded text, and it does not provide encryption, access control, or integrity protection.
On this page

Encoding changes representation, not confidentiality
The Base64 alphabet turns binary data into text-like characters. Anyone who receives the encoded string can decode it with common tools. The apparent unreadability of a long string is not a security property.
Do not use Base64 for passwords, API keys, private documents, identity data, or any secret that needs protection. Use an approved security design and appropriate encryption or secret-management controls instead.
Worked example: a readable phrase becomes readable again
The phrase `Aftermath` can be represented as `QWZ0ZXJtYXRo` in Base64. The second form is not meaningfully protected; decoding restores the original text. It is a representation change, not a lock.
The same is true for a small image or file. Encoding can make it suitable for a particular field or transport format, but it can increase size and make accidental sharing harder to notice because the content is no longer visually recognizable.
| Property | Does Base64 provide it? | What a workflow should use instead |
|---|---|---|
| Text-safe representation | Often, when a system expects Base64. | Use only where the receiving format calls for it. |
| Confidentiality | No. | Appropriate encryption and access controls. |
| Tamper detection | No. | A suitable signature, hash, or integrity protocol. |
Size and limits still apply
Base64 commonly expands data compared with the original bytes. A workflow that turns a file into a long text string can hit form, memory, logging, or URL limits even though the original file was small enough for a different upload path.
If a platform asks for a file upload, do not assume a Base64 string is an accepted substitute. Follow the platform’s current integration documentation and avoid placing large encoded data in locations designed for short text.
Keep the output scope narrow
A local encoder can help inspect or prepare a non-sensitive value, but the output should be treated with the same care as the source. Base64-encoded content can still leak through chat history, logs, screenshots, browser sync, copied clipboard data, or a shared device.
A result receipt can say that a chosen local value was encoded or decoded. It cannot attest to security, consent, key management, external acceptance, or safe handling after the text leaves the browser.
Use a local tool
