snaptxt.app

Base64 Encode / Decode

Convert text and files to and from Base64. Images preview automatically.

Plain text
Base64 output

How to use it

  1. 1Paste text into the input field, or drop a file from your computer.
  2. 2Switch between Encode and Decode using the toggle at the top.
  3. 3Copy the result, or download it as a file.

Common use cases

  • Embed images directly in CSS or HTML as data URLs.
  • Encode binary data inside JSON payloads or API requests.
  • Decode the payload of a JWT or inspect Basic auth headers.
  • Move binary attachments through email or chat that strips non-text data.

Frequently asked questions

Is my data uploaded anywhere?
No. Everything happens in your browser — the input never leaves your device.
Is Base64 a form of encryption?
No. Base64 is an encoding, not encryption. Anyone with the encoded string can decode it.
What's the maximum file size?
There's no hard limit, but very large files (hundreds of megabytes) may slow your browser since the encoded result is held in memory.
Does it handle URL-safe Base64?
Yes. Decode mode accepts both standard Base64 (using + and /) and URL-safe Base64 (using - and _).