Base64 encoder and decoder
Convert text to Base64 and back, with full Unicode support.
About the Base64 Encode & Decode tool
This Base64 tool encodes text to Base64 and decodes Base64 back to readable text. Text is turned into UTF-8 bytes first, so Hindi and emoji survive the round trip: "Hello, नमस्ते!" encodes and decodes back exactly. Tick URL-safe to use - and _ instead of + and / and drop the = padding, the variant used in JWT tokens and links; decoding accepts both forms. Base64 is an encoding, not encryption, so anyone can decode it.
At a glance
- Encoding
- UTF-8 text to standard or URL-safe Base64 (RFC 4648)
- Decoding
- Accepts standard and URL-safe input, line breaks and missing = padding
- Size
- Base64 is about 4/3 the size of the original bytes
- Price
- Free, no sign-up
- Works in
- Your browser, on phone or computer. Works offline after the first visit.
- Privacy
- What you type never leaves your device.
How to encode or decode Base64
- Choose Encode or Decode.
- Type or paste your text.
- Copy the result. Press "Use as input" to go the other way: the direction switches for you.
Private
Your text stays in your browser and is never sent to a server.
Instant
Results update as you type, with nothing to install.
Free
No sign-up, no limits and no ads inside your writing space.
Base64 Encode & Decode: frequently asked questions
Is Base64 encryption?
No. Base64 only changes how data is written so it travels safely as text. Anyone can decode it, so never use it to hide passwords.
Why does my decoded text look broken?
The Base64 may hold a file or image rather than text, or it was cut off when copied.
How long is the Base64 of a text?
About 4 characters for every 3 bytes, rounded up to a multiple of 4 with = padding. "hello" (5 bytes) becomes "aGVsbG8=" (8 characters). Hindi letters take 3 bytes each in UTF-8, so Hindi text grows more.
Is my text sent anywhere?
No. Everything runs in your browser and your text never leaves your device. Nothing is stored on any server.



