1. Home
    2. Data Converters (JSON/CSV)
    3. Base64 Encoder / Decoder

    Base64 Encoder & Decoder

    Encode text or files to Base64, or decode Base64 back to text. Full UTF-8 and URL-safe Base64 support.

    Mode

    Tip: use Upload to encode any file (image, PDF) to Base64.

    Input
    Output

    Everything runs in your browser. Your data never leaves your device.

    Quick answer

    How do I encode or decode Base64?

    Choose Encode or Decode and paste your text. The Toolzzz Base64 tool converts it instantly with full UTF-8 support, so emoji and accents work. Press Upload to turn any file, such as an image, into a Base64 data URI. Decoded binary data can be downloaded as a file.

    • Encode and decode in one tool
    • Full UTF-8 support, including emoji
    • URL-safe Base64 (base64url) option
    • Encode any file to a data URI
    • Decoded binary is offered as a download
    • Optional 76-character line wrapping (MIME)
    • Swap button to reverse the result
    Base64 Encoder & Decoder: encode and decode text in your browser
    Base64 Encoder / Decoder on Toolzzz: encode and decode text, free and private.
    How it works

    How to encode or decode Base64

    The result updates as you type.

    1. Choose the mode

      Pick Encode or Decode, and tick URL-safe if you need base64url.

    2. Paste text or a file

      Paste text, or press Upload to encode a file such as an image.

    3. Copy the result

      Press Copy or Download. Use Swap to reverse it.

    How to encode or decode Base64 in three steps: choose the mode, paste text or a file, copy the result
    How to encode or decode Base64 in three steps.
    Use cases

    Where Base64 is used

    Images in HTML and CSS

    Embed small icons as data URIs to save a request.

    Email attachments

    MIME email encodes attachments as Base64.

    API authentication

    Basic auth headers carry Base64 credentials.

    JSON payloads

    Send binary data inside JSON as text.

    JWT tokens

    JWT parts use URL-safe Base64.

    Debugging

    Decode encoded strings from logs and configs.

    Any device

    How to use the Base64 Encoder / Decoder on Windows, Mac, iPhone and Android

    No app to install. The tool works in any modern browser, so the steps are almost the same everywhere.

    On Windows

    1. Open toolzzz.com/base64-encoder-decoder/ in Chrome, Edge or Firefox.
    2. Paste (Ctrl+V) your text into the left box, or press Upload to open a file.
    3. Choose Encode or Decode.
    4. Press Copy to put the result on your clipboard, or Download to save it. Files go to your Downloads folder.

    On Mac

    1. Open toolzzz.com/base64-encoder-decoder/ in Safari or Chrome.
    2. Paste (Cmd+V) your text into the left box, or press Upload to open a file.
    3. Choose Encode or Decode.
    4. Press Copy to put the result on your clipboard, or Download to save it.

    On iPhone and iPad

    1. Open toolzzz.com/base64-encoder-decoder/ in Safari.
    2. Touch and hold the box, tap Paste to add your text into the left box, or tap Upload to open a file.
    3. Choose Encode or Decode.
    4. Tap Copy to put the result on your clipboard, or Download to save it. Downloads appear in the Files app.

    On Android

    1. Open toolzzz.com/base64-encoder-decoder/ in Chrome.
    2. Long-tap the box and tap Paste to add your text into the left box, or press Upload to open a file.
    3. Choose Encode or Decode.
    4. Tap Copy to put the result on your clipboard, or Download to save it. Downloads go to the Downloads folder.
    Comparison

    Toolzzz vs. other online converters

    FeatureToolzzz Base64 Encoder / DecoderTypical online converters
    PriceFree, no limitsFree tier, then paid plans
    Where your data goesStays in your browserOften uploaded to a server
    Sign-upNot neededSometimes needed to download
    SpeedConverts as you typeUpload, wait, then download
    Size limitOnly your device memoryOften 1 to 10 MB on free plans
    Error messagesLine and column shownOften just "invalid input"

    "Typical" describes common limits of free online services. Plans and limits differ between sites.

    Why Toolzzz

    Why convert data with Toolzzz

    Private by design

    Your data is converted by JavaScript in this tab. Nothing is sent to Toolzzz or anyone else.

    Instant results

    The output updates while you type or paste. There is no queue and no waiting.

    Clear errors

    Invalid input is flagged with the reason and, where possible, the exact line and column.

    Copy or download

    Copy the result in one click or save it as a ready-to-use file.

    Works everywhere

    Windows, Mac, Linux, iPhone, iPad and Android. Any modern browser will do.

    Free forever

    No account, no limits, no watermark and no trial period.

    Pro tips

    Tips for the best result

    • Base64 is encoding, not encryption. Anyone can decode it, so never treat it as security.
    • Base64 makes data about 33% larger.
    • Use URL-safe for data in URLs and filenames: it uses - and _ instead of + and /.
    • Only embed small images as data URIs. Large ones slow pages down.
    • To read a JWT, use the JWT Decoder.
    Glossary

    Key terms explained

    Base64
    An encoding that represents binary data with 64 printable characters: A-Z, a-z, 0-9, + and /.
    base64url
    A URL-safe variant that uses - and _ and usually drops the = padding.
    Data URI
    A link that contains the file itself, such as data:image/png;base64,...
    FAQ

    Frequently asked questions

    Is the Base64 tool free?

    Yes, free and unlimited.

    Is my data uploaded?

    No. Encoding and decoding run in your browser.

    Does it support emoji and accents?

    Yes. Text is encoded as UTF-8 first, so every character round-trips correctly.

    How do I encode an image to Base64?

    Press Upload and choose the image. You get a data URI ready for HTML or CSS.

    What if the decoded data is not text?

    You get a note and can press Download to save the binary file.

    What is URL-safe Base64?

    A variant that replaces + with - and / with _, and drops padding, so it is safe in URLs.

    Is Base64 secure?

    No. It only changes the format. Use Encrypt Image or a password manager for secrets.

    Why does my Base64 fail to decode?

    It may contain invalid characters or be cut off. Whitespace and data: prefixes are removed automatically.