64 Base64Toolkit
Language:

Base64 Encode & Decode

Type in either box — conversion happens live, both ways, on one screen. 100% client-side: your data never leaves your browser.

0 chars · 0 bytes

0 chars · 0 bytes

Options

Recent conversions

Nothing yet — your last 10 conversions will appear here (stored only in this browser).

    What is Base64 encoding?

    Base64 is a binary-to-text encoding scheme that represents any sequence of bytes using only 64 printable ASCII characters: A–Z, a–z, 0–9, + and / (with = used for padding). It exists because many protocols and file formats — email (MIME), JSON, XML, YAML, HTML — were designed to carry text, not raw binary data. Encoding binary content as Base64 lets it pass through these text-only channels without corruption.

    The algorithm is simple: the input is read 3 bytes (24 bits) at a time, the 24 bits are split into four 6-bit groups, and each 6-bit value (0–63) is mapped to one character of the Base64 alphabet. For example, the word Man becomes TWFu: the ASCII bytes 77, 97 and 110 form the bit string 010011010110000101101110, which splits into 19, 22, 5 and 46 — the characters T, W, F and u.

    How to use this Base64 converter

    1. To encode: type or paste any text into the Plain Text box. The Base64 result appears instantly in the right box — no button to press.
    2. To decode: paste a Base64 string into the Base64 box. The decoded text appears instantly on the left. Missing = padding and stray line breaks are fixed automatically.
    3. Copy the result with one click — as raw text, as a data: URI, or as a ready-to-use HTTP Authorization: Basic header.
    4. Open Options for UTF-8/ASCII/ISO-8859-1/UTF-16 charsets, URL-safe Base64URL output, MIME 76-character line wrapping (RFC 2045), and per-line encoding.

    Base64 in DevOps and everyday engineering

    If you work in DevOps, you touch Base64 daily, often without thinking about it:

    Why use this tool instead of the command line?

    You can run base64 on Linux/macOS or [Convert]::ToBase64String() in PowerShell — but flags differ between systems (-d vs -D vs --decode), line-wrapping defaults bite you, and Windows has no simple equivalent. This page gives you one consistent, zero-install tool that works the same everywhere, handles Unicode correctly, shows errors clearly, and keeps a local history of your recent conversions. Because everything runs in your browser, it is also safe for sensitive values — unlike online tools that send your input to a server.

    Frequently Asked Questions

    Is Base64 an encryption method?

    No. Base64 is an encoding, not encryption. It converts binary data into printable text so it can travel safely through text-only channels, but anyone can decode it instantly. Never rely on Base64 to hide passwords, API keys, or other secrets — use real encryption for that.

    Why does Base64 output end with = or ==?

    Base64 processes input in blocks of 3 bytes, producing 4 output characters. When the input length is not a multiple of 3, the output is padded with = (one byte short) or == (two bytes short) so the length stays a multiple of 4. Our decoder also accepts input with missing padding and fixes it automatically.

    Is it safe to paste secrets or passwords into this tool?

    Yes. Every conversion on this site runs entirely inside your browser using JavaScript — nothing is uploaded, logged, or sent to any server. You can even disconnect from the internet after the page loads and the tool keeps working.

    How do I decode a Kubernetes secret with Base64?

    Values under the data: key of a Kubernetes Secret are Base64-encoded. Paste a value here to decode it, or use our dedicated Kubernetes Secret Decoder to paste the whole YAML and decode every key at once.

    What is the difference between Base64 and Base64URL?

    Standard Base64 uses + and /, which have special meanings in URLs. Base64URL (RFC 4648 §5) replaces them with - and _ and usually drops the = padding, making the output safe for URLs, filenames, and JWT tokens. Enable it under Options or use the Base64URL tool.

    Does Base64 make data bigger?

    Yes — Base64 output is about 33% larger than the original data (every 3 bytes become 4 characters), plus up to two padding characters. That is the trade-off for making binary data safe to embed in text formats like JSON, XML, YAML, and email.

    Related Tools