Encode any text to Base64 or decode Base64 back to plain text. Useful for HTML, CSS, JSON, and APIs.

Plain text
Base64

How to Use the Base64 Encoder / Decoder

  1. Paste your text in the top panel — the Base64 output appears automatically below.

  2. Or paste Base64 in the bottom panel — the decoded text appears above.

  3. Use the buttons to manually trigger Encode or Decode, swap the panels, or copy either side.

What Is the Base64 Encoder / Decoder?

Base64 is an encoding scheme that converts binary data or text into a string of safe ASCII characters. It's used everywhere in web development: embedding images directly in HTML or CSS (data:image/png;base64,...), passing data in URLs, encoding file attachments in emails, and storing binary data in JSON. This tool lets you encode or decode instantly without leaving your browser.

Frequently Asked Questions

Base64 encodes every 3 bytes of input as 4 characters of output — making it about 33% larger. This is the trade-off for using only safe ASCII characters.
This tool encodes text only. To encode an image as Base64, you'd need to read the file as binary first — which requires additional steps beyond a text encoder.
No. Base64 is encoding, not encryption. It's easily reversible by anyone and provides no security. Do not use it to hide sensitive data.
No. All processing happens entirely in your browser. Your files never leave your device.
Yes, completely free. No signup, no account, no hidden fees.
All modern browsers — Chrome, Firefox, Safari, and Edge on desktop and mobile.