Free Base64 Encoder & Decoder
Turn text into Base64 — or Base64 back into text — in one click. Full Unicode support, optional URL-safe output. Free, instant, no sign-up.
✦ Free foreverNo sign-upUnicode safeURL-safe mode
Encode or decode Base64
Type or paste your text below, pick Encode or Decode, and press the button. Everything runs in your browser — nothing is uploaded anywhere.
How this Base64 encoder works
Base64 is a way of writing any text using only 64 safe characters: A–Z, a–z, 0–9, + and /, with = padding at the end. It turns text (or binary data) into a form that survives email, URLs and config files without being mangled.
Example
Hello, World! → SGVsbG8sIFdvcmxkIQ==
Habib builds free tools → SGFiaWIgYnVpbGRzIGZyZWUgdG9vbHM=
How the encoding works
- Every 3 bytes of text become 4 Base64 characters — so the output is about one third longer than the input.
- = padding is added when the input length is not a multiple of 3.
- URL-safe mode swaps + for - and / for _ and drops the padding, so the result is safe inside a web address.
- Base64 is not encryption — anyone can decode it. Never use it to hide passwords or secrets.
Common uses
- Embedding small images or files inside HTML, CSS and JSON as data URIs.
- Sending binary data through systems that only accept plain text, like email.
- Storing tokens and API keys in config files (as an encoding, not as security).
Frequently asked questions
What is Base64 encoding?
Base64 writes text using only 64 safe characters (A–Z, a–z, 0–9, + and /). It is used to carry text or binary data through systems that only accept plain text, such as email and URLs.
How do I encode text to Base64?
Paste your text in the box above, make sure Encode is selected, and press Encode. For example, Hello, World! becomes SGVsbG8sIFdvcmxkIQ==.
How do I decode Base64 back to text?
Choose Decode, paste the Base64 string, and press Decode. Base64 is an encoding, not encryption, so anyone can decode it.
What is URL-safe Base64?
URL-safe Base64 replaces + with - and / with _ and drops the = padding, so the result can sit inside a web address without being escaped. Tick the URL-safe box before encoding.
Why is my Base64 longer than my text?
Base64 turns every 3 bytes into 4 characters, so the output is about one third longer than the input, plus a little padding. That is normal.
Is this Base64 tool free?
Yes. BaseSixFour is 100% free. No account, no sign-up, no limit — and your text never leaves your browser.
More CodeLab tools
BaseSixFour is one of 9 free tools on CodeLab. Try the others — all free, all in your browser.
JsonForge • RegexForge • CsvShift • Unixly • IdForge • TokenPeek • SiteCheck • CronCraft