Base64 Encoder / Decoder
Encode and decode text to and from standard or URL-safe Base64.
Base64 encoder / decoder
Input
Output
Variants & details
How to encode and decode Base64 online
Choose a direction
Switch between the Encode and Decode tabs. Encode turns text into Base64, decode turns Base64 back into readable text.
Paste your content
Type plain text to encode it, or paste a Base64 string — including URL-safe variants with - and _ characters — to decode it.
Pick the output style
Add a data URI prefix, build a ready-made CSS background rule, or copy the URL-safe variant for links and query strings.
Copy the result
Every panel has its own Copy button, and the size readout shows exactly how many bytes the input and output take.
Base64 encoder / decoder — frequently asked questions
Base64 is a binary-to-text encoding that turns arbitrary bytes into 64 safe ASCII characters (A–Z, a–z, 0–9, + and /). It was designed so binary data could travel safely through systems that only handle text, such as email headers, JSON payloads and URLs.
No. Base64 is an encoding, not encryption — anyone can decode it instantly. Never use it to hide passwords or secrets; use real encryption for that.
Standard Base64 uses + and / and pads the end with =. URL-safe Base64 (RFC 4648 §5) replaces those characters with - and _ and drops the padding, so the result can be placed directly in a URL without escaping.
That usually means the Base64 string was truncated, was actually hexadecimal or binary data rather than text, or the original bytes were not valid UTF-8. This decoder reads the bytes as UTF-8 and reports how many bytes were decoded, so you can tell a decoding problem from a text problem.
Turn on “Output as a CSS background” and pick the matching MIME type. The tool then emits a complete background-image: url("data:image/png;base64,…") declaration that you can paste straight into your stylesheet.
Related Developer Tools
JSON Formatter & Validator
Format, validate and minify JSON, with an expandable tree view of the structure.
Open toolBase64 Encoder / Decoder
Encode and decode text to and from standard or URL-safe Base64.
Open toolHash & Checksum Generator
Compute MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests instantly.
Open toolRegex Tester & Debugger
Test regular expressions with live match highlighting and capture groups.
Open toolUUID / GUID Generator
Generate random v4 UUIDs one by one or in bulk, with upper, lower and brace styles.
Open toolUnix Timestamp Converter
Convert Unix epoch seconds and milliseconds into readable dates and back.
Open tool