Base64 Encode/Decode
Encode and decode text or images to and from Base64 format.
Image → Base64
Drag & drop an image, or click to select a file
Supports JPEG, PNG, GIF, WebP, SVG
How to use
- Select Encode or Decode mode.
- Paste text or drop an image file into the input.
- Click the convert button to process.
- Copy the Base64 string or download the decoded file.
About this tool
Base64 Encode/Decode converts text and binary files to and from the Base64 representation directly in your browser. It is useful when you need to embed small assets into source code, transport binary data through text-only channels, or inspect encoded values pulled from logs and APIs.
Features
Two-way conversion, automatic UTF-8 handling, drag-and-drop image support, data URI output for instant HTML embedding, and a one-click copy button. The decoder recognises data URI prefixes and strips them automatically when needed.
Use cases
Embedding icons into CSS as inline data, transmitting credentials through HTTP basic authentication headers, encoding email attachments, and debugging JWT payloads or webhook bodies that arrive Base64 encoded.
Why choose this tool
Everything runs locally, so private tokens never reach a remote server. The tool handles both text and binary inputs gracefully and produces output that works in every major browser and backend runtime, saving developers from writing throwaway scripts.
FAQ
- Can I encode binary images?
- Yes. Drop a PNG, JPEG, or WebP file and the tool returns a data URI ready to embed in HTML or CSS.
- Does it support UTF-8 characters?
- Yes. Non-ASCII characters such as Japanese or emoji are encoded correctly using UTF-8 bytes.
- Is it safe for passwords?
- Base64 is encoding, not encryption. Do not rely on it to protect secrets; use a real hash or cipher instead.