Base64 Encoder / Decoder
Encode text to Base64 and decode Base64 back to readable text in your browser.
Encode plain text to Base64 or decode Base64 back to readable text instantly. Supports Unicode, URL-safe mode, validation, and one-click copy. Everything runs locally in your browser.
Base64 Encoder / Decoder
Type or paste input, switch mode, and get instant output with validation.
About Base64
What is Base64?
Base64 is a text-encoding format that converts binary or Unicode data into plain ASCII characters. It is commonly used when systems accept text only, such as JSON payloads, data URLs, email MIME content, or token-like values.
When to use Base64 encoding
- Embedding text-like payloads into APIs that expect safe characters
- Transporting binary-like data through text-only channels
- Creating data URLs for small assets
- Interoperating with legacy systems or protocols
Base64 vs encryption
Base64 is not encryption. It does not protect data and is not a security measure. Anyone with basic tools can decode Base64 back to the original text. Use proper cryptography (encryption + key management) when confidentiality is required.
URL-safe Base64 explained
Standard Base64 uses + and /, which can be awkward in URLs. URL-safe Base64 replaces them with - and _. Optional padding removal (=) is also common for compact URL tokens.
Common examples
Text
Hello world
Base64
SGVsbG8gd29ybGQ=
Text
{"name":"Darma","tool":"Base64"}
Base64
eyJuYW1lIjoiRGFybWEiLCJ0b29sIjoiQmFzZTY0In0=
Text
مرحبا بالعالم
Base64
2YXYsdit2KjYpyDYqNin2YTYudin2YTZhQ==
Privacy note
All encoding and decoding happens locally in your browser. Your text is never sent to a server.