Online toolTools

Base64 Encode & Decode

A free online Base64 encoder and decoder that converts as you type: enter text to get Base64, or paste Base64 to get the text back. It is UTF-8 safe, supports URL-safe Base64, keeps your last 10 entries in the browser and never sends your input to a server.

Options

0 chars · 0 bytes

0 chars · 0 bytes

No button to press: it converts as you type. Type in either box and the other one follows.

Recent history

    No history yet. It fills up automatically as you type.

    The last 10 entries are kept only in this browser (localStorage) and never sent to a server. Click one to load it again.

    What is Base64 encoding?

    Base64 writes arbitrary bytes using only 64 characters: A–Z, a–z, 0–9, + and /. Every 3 bytes become 4 characters, so the output is about 33% longer than the input, and = is appended as padding when the length is not a multiple of 3.

    It is used wherever only text can pass through: email attachments (MIME), data URLs, HTTP Basic auth headers, JWTs and Kubernetes Secrets. This converter turns your text into UTF-8 bytes first, so accented letters, CJK characters and emoji survive the round trip.

    Everything runs in your browser. Nothing you type is sent to a server.

    Frequently asked questions

    Is Base64 encryption?

    No. Base64 is a reversible way of writing bytes, not encryption. Anyone can decode it, so encoding a password or token in Base64 does not protect it.

    Why do different tools give different Base64 for the same non-English text?

    Because they convert characters to bytes with different character encodings. This tool uses UTF-8, the web standard. Text encoded as UTF-16 or a legacy code page first produces a different result.

    What is URL-safe Base64 (Base64URL)?

    It replaces + with - and / with _, and drops the trailing = padding, so the value can go into a URL or file name unchanged. JWTs use it. When decoding, this tool accepts both variants automatically.

    Is my input sent to a server?

    No. Encoding and decoding happen in JavaScript in your browser. The recent history is also kept only in this browser's localStorage and can be cleared at any time.

    Type to search

    ↑↓ moveEnter openEsc close