Base64 Encoder/Decoder
Encode or decode Base64 text and small files, UTF-8 safe.
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
Format Converter
Convert images between formats (JPG, PNG, WebP, AVIF)
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.
- ✓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
- 1Prepare the input
Text to encode, a Base64 string to decode, or a small file (under 3 MB).
- 2Configure 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.
- 3Review 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.