Back to Text Tools

Base64 Encoder/Decoder

Encode or decode Base64 text and small files, UTF-8 safe.

All text is processed in your browser. Nothing is uploaded to any server.

Base64 Encoder & Decoder — Text and Files

Encode text or a small file to Base64, or decode a Base64 string back to readable text — correctly handling UTF-8 (accented letters, emoji), with an optional URL-safe variant.

Quick answer: Base64 Encoder/Decoder

Base64 Encoder/Decoder converts text or a small file into Base64 (for embedding in JSON, CSS, or a data URL) and back again. It correctly round-trips UTF-8 text — accented letters, Indonesian names, and emoji — which the plain browser btoa()/atob() functions break on.

Input
Text to encode, a Base64 string to decode, or a small file (under 3 MB).
Output
The encoded Base64 string, the decoded original text, or a data: URL for a file.
Know before use
Encoding a file grows its size by about a third and is only practical for small files; large files should stay as files, not Base64 text.
Cleaning up structured data too? Try JSON Formatter.
  • ✓100% free, no sign-up required
  • ✓Runs entirely in your browser — no file upload to server
  • ✓UTF-8 safe — correctly handles accents, emoji, and non-Latin text
  • ✓URL-safe encoding option for use in links and query strings
  • ✓Privacy-first: your data never leaves your device

How to Use

  1. 1
    Prepare the input

    Text to encode, a Base64 string to decode, or a small file (under 3 MB).

  2. 2
    Configure and process

    Base64 Encoder/Decoder converts text or a small file into Base64 (for embedding in JSON, CSS, or a data URL) and back again. It correctly round-trips UTF-8 text — accented letters, Indonesian names, and emoji — which the plain browser btoa()/atob() functions break on.

  3. 3
    Review the result

    The encoded Base64 string, the decoded original text, or a data: URL for a file.

What do I need to use Base64 Encoder/Decoder?

Text to encode, a Base64 string to decode, or a small file (under 3 MB).

What does Base64 Encoder/Decoder produce?

The encoded Base64 string, the decoded original text, or a data: URL for a file.

What are the limitations of Base64 Encoder/Decoder?

Encoding a file grows its size by about a third and is only practical for small files; large files should stay as files, not Base64 text.