Base64 Encoder / Decoder
Encode and decode Base64 strings.
// What you can do
UTF-8 in, UTF-8 out
Text is encoded to UTF-8 bytes first, so Chinese characters and emoji survive a round trip instead of throwing an error.
Forgiving decoder
URL-safe -/_ characters and missing = padding are detected automatically before decoding.
Keyboard first
Ctrl/Cmd + Enter encodes, Ctrl/Cmd + Backspace clears. Base64-looking input also decodes automatically after a short pause.
// How it works
Base64 is a representation, not encryption. It turns arbitrary bytes into 64 printable ASCII characters so they can travel through text-only channels such as JSON, email and URLs. Because the conversion is reversible, decoding is just as common as encoding.
EXAMPLE:
Hello World
=> SGVsbG8gV29ybGQ=
Three input bytes become four Base64 characters; = pads the output to a multiple of four.
STEPS:
- [01]
Type or paste your value into the INPUT pane.
- [02]
Click Encode to turn plain text into Base64, or Decode to go the other way.
- [03]
Tick URL-safe or Remove padding when the target format needs them.
- [04]
Use Copy or Download to take the result with you; Swap moves the output back into the input.
// Questions and answers
What is Base64?
A binary-to-text encoding that uses A-Z, a-z, 0-9, + and /. It is reversible and is not encryption, so never treat it as a way to protect a secret.
Does it support Chinese text and emoji?
Yes. The input is converted to UTF-8 bytes before encoding and decoded back as UTF-8 text.
What does URL-safe change?
It replaces + with - and / with _, so the result can be placed in a URL or filename without percent-encoding. Remove padding drops the trailing = signs.
// Privacy and data
All conversions run in your browser with JavaScript. Your input is never uploaded, logged or saved, and it disappears when you close the tab.
See the Privacy Policy for the site-wide rules.