Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to plain text.
Processed 100% in your browser — nothing you enter here is ever uploaded.
Common use cases
Embedding a small image as a data URI
Encode a tiny icon or SVG to paste directly into CSS as a background-image, skipping an extra HTTP request.
Decoding a Basic Auth header
An Authorization: Basic header is just a Base64-encoded username:password — decode it to see what's actually being sent.
Reading a Base64-encoded environment variable
Some services store secrets or certificates as Base64 in env vars — decode one to confirm it's the value you expect.
How to use the Base64
Choose Encode to turn plain text into Base64, or Decode to turn Base64 back into readable text.
Type or paste your input — the result updates instantly as you type, no button required.
Use "Swap & decode/encode" to immediately reverse the operation on the current output.
Unicode text (emoji, non-Latin scripts) is fully supported in both directions.