Base64 encoder and decoder
Paste text to encode it as base64, or paste base64 to read it back. Text is encoded as UTF-8, so accents and emoji survive the trip — and the URL-safe alphabet is one checkbox away.
Common questions
What is base64 used for?
It writes arbitrary bytes using 64 printable characters, so binary survives channels that only carry text — email attachments, data URIs, JSON fields. The encoded form is about a third larger.
Is base64 a form of encryption?
No. It is an encoding, not a cipher: anyone can decode it without a key, and this page does it in one paste. Never use base64 to hide a password, a token or anything else secret.
Why do accents and emoji break in other base64 tools?
Base64 encodes bytes, not characters, so text has to become UTF-8 first. Tools built on the browser's btoa alone fail above Latin-1 — btoa("café") throws. This one encodes as UTF-8.
What is URL-safe base64?
Plus and slash both have meaning inside a URL, so RFC 4648 defines an alternative using minus and underscore instead. JWTs use it, usually with the trailing equals padding removed.
Other tools
- Weight Converter kg, lb, oz, g, stone and tonnes
- Height Converter cm, m, feet and inches
- Temperature Converter Celsius, Fahrenheit and kelvin
- Speed Converter km/h, mph, m/s, ft/s and knots
- Volume Converter Litres, millilitres, gallons, pints and cups
- Area Converter m², sq ft, acres, hectares and sq miles
- Time Converter Milliseconds, seconds, minutes, hours and days
- Data Storage Converter Bytes, KB, MB, GB, TB and KiB, MiB, GiB, TiB
- Percentage Calculator Percent of, percent change, increase and decrease
- Age Calculator Years, months, days and your next birthday
- Word Counter Words, characters, sentences and reading time
- Case Converter UPPER, lower, Title, camelCase and snake_case
- Typing Speed Test Words per minute, accuracy and your best
- BMI Calculator Body mass index, body fat and daily energy
- Lorem Ipsum Generator Placeholder text by paragraph, sentence or word
- UUID Generator Random version 4 UUIDs, up to 100 at once
- Password Generator Strong random passwords, generated locally