Neatbo.

Base64 encoder and decoder

Encode text or file bytes as Base64, or decode Base64 to UTF-8 text or a binary file.

Browser-local processingInputUTF-8 text, file bytes or Base64OutputBase64, UTF-8 text or binaryUp to 10 MiB per file · File limit: 1
  1. 1Add input
  2. 2Adjust settings
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input

or drag and drop it here

Files stay on this device. Your originals stay unchanged.

Up to 10 MiB per file · File limit: 1

    0 characters · 0 bytes
    Options

    Complete the required options first. You can keep the defaults for the rest.

    Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.⌘ / Ctrl + Enter to run

    Preparing the tool…

    Before you start

    Convert UTF-8 text or a local file's bytes to standard Base64. You can also decode Base64 into text or download the decoded bytes as a binary file. Processing happens in your browser. Base64 does not encrypt the content.

    How to use this tool

    1. Paste text or choose one local file. To decode, supply Base64 text; to encode a file, select the original file whose bytes you need.
    2. Under Options, choose Encode or Decode in Operation. For Decode, choose UTF-8 text or Binary file under Decoded output. Enable Ignore whitespace in Base64 only if spaces or line breaks should be removed before decoding.
    3. Select Convert Base64. Copy or download a text result, or download decoded.bin for binary output. Run the conversion again after changing the input or options.

    Supported inputs and limits

    Paste up to 1 MiB of text, measured in UTF-8 bytes, or choose one file up to 10 MiB.

    Filenames can contain up to 512 UTF-16 code units; a visible character may use more than one code unit. For decoding, the file itself must contain Base64 saved as UTF-8 text.

    A selected file takes priority over pasted text. Encoding uses the file's raw bytes. Remove the file to use the text box instead.

    Text previews show up to 4,000 characters. Copy result and the result.txt download contain the complete text. For binary output, download decoded.bin to keep the complete decoded bytes.

    Worked example

    Example input

    中文😀
    Example options
    {}

    Example output

    5Lit5paH8J+YgA==

    When something does not work

    If a file cannot be read, select it again or remove it to use pasted text. Check the Base64 characters, padding and whitespace setting when decoding fails. Choose Binary file if the decoded bytes are not UTF-8 text. Editing the input marks the previous result as stale, and a failed run clears it. Copy or download any result you want to keep before refreshing or closing the tab.

    Frequently asked questions

    Why is my Base64 rejected?

    Decoding expects the standard Base64 alphabet, including + and /, with correct = padding where needed and zero unused padding bits. It does not accept the Base64url alphabet or a data: URL prefix. Whitespace is rejected unless you enable Ignore whitespace in Base64. That option removes whitespace; it does not repair other invalid characters or padding.

    Should I choose UTF-8 text or Binary file?

    Choose UTF-8 text when the decoded bytes represent valid UTF-8. Choose Binary file for other data or when you need the exact decoded bytes. UTF-8 text decoding consumes an initial UTF-8 byte order mark, while binary output preserves it. Binary output is downloaded as decoded.bin; its Copy result button copies the byte-count summary, not the file's bytes.

    Documentation & further reading

    Related tools