321.id
  • Frame
  • Polling
  • Quiz
  • Spin Wheel
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.
0 characters
0 characters

Pasting a Base64 string automatically switches to Decode.

More tools you might like

All tools →

Word Counter

Count words, characters, sentences, and reading time

Lorem Ipsum Generator

Generate placeholder text for designs and layouts

Case Converter

Convert text between uppercase, lowercase, title case, and more

Image Compressor

Reduce image file size while maintaining quality

Background Remover

Remove backgrounds from images using AI

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.

321.id

Create shareable Polling, Quiz, Frame, and Spin Wheel experiences—or finish quick tasks with browser tools.

FeaturesFrameQuizPollingSpin WheelOnline Tools
CompanyAbout UsContact UsFAQ
ConnectInstagramEmail
© 321.id · All rights reserved
Switch language
PrivacyTerms
  • Spin Wheel
  • Polling
  • Quiz
  • Frame