Base64 Encode & Decode

FREE

Encode or decode UTF-8 text, images and files online. Free browser-based conversion with no sign-in.

Processed on your device
Ctrl / ⌘ + Enter to run
0 characters · 0 bytesUTF-8
Ready when you are
↔
A little input. A useful result.

Paste some text or try an example.
Your result will appear here.

No result yet
Advanced options Padding · Validation · Line wrapping

Base64URL and padding are separate settings. Strict decoding does not remove spaces or line breaks.

◇

No account needed. Conversion stays on this device. Only text you choose to save is sent to your account. Share sends the current result to the app you choose. How this works ↗

Preparing offline shell…
WHEN SOMETHING LOOKS WRONG

Make sense of that error.

Find the issue, review a suggested fix, and keep control of your original data.

GOOD TO KNOW

Encoding isn’t encryption.

Base64 changes how data is represented. Anyone with the encoded value can decode it.

A quick guide to Base64 →
BUILT FOR YOUR NEXT TASK

Keep your workflow moving.

Text, files, and image Data URLs share one workspace. No extra tabs required.

A FEW QUICK ANSWERS

Less guesswork.
More getting things done.

Why does my decoded result look like random characters?

The result might be a binary file, or text in a different character encoding. This version supports UTF-8 and lets you download the original decoded bytes.

Can this recover a truncated Base64 string?

No. Formatting changes can make some strings decodable, but cannot restore missing bytes. Copy the complete original value.

Does Base64 make a file smaller?

No. Padded Base64 uses 4 characters for each group of up to 3 input bytes, before line wrapping or a Data URL header.

Free online Base64 converter guide

Encode text to Base64 or decode it to text

Choose Text, then Encode or Decode. Paste UTF-8 text to make a Base64 string, or paste a Base64 value to inspect its decoded text. Copy, share or download the result. A decoded value that is not valid UTF-8 is shown as a short hex preview and can be downloaded as the original bytes.

Convert an image or file to Base64

Choose Image for a PNG, JPEG, GIF or WebP file, or File for another file type. Select a file up to 5 MiB and choose Encode. Copy raw Base64, download it, or select a Data URL. Supported images can also produce an HTML image tag or CSS background snippet when Standard Base64, padding and no line wrapping are selected. File content is processed on your device.

Decode Base64 back to an image or file

For a Base64-encoded image saved as a .txt or .b64 file, choose Image and Decode, then select that file to preview a supported image and download its bytes. Choose File and Decode to download other decoded binary data. The Text tab accepts pasted Base64 or a supported Data URL after you review the suggested formatting change; it displays UTF-8 text or a byte preview rather than an inline image.

Choose Standard Base64 or Base64URL

Standard Base64 uses + and /; Base64URL uses - and _. Choose the alphabet expected by your application. Padding and MIME-style 76-character line wrapping are separate options. Base64URL is an encoding alphabet, not a URL encoder for an entire web address.

Fix invalid Base64 without losing the original

Strict decoding reports malformed characters, padding and other invalid input. Compatible mode proposes limited formatting changes, such as separating an allowed Data URL header or handling whitespace. Inspect the proposal and press Apply changes & decode before the input changes. A truncated value cannot be recovered by adding padding.

Work privately, save only when you choose

Free conversion needs no account and runs in a browser worker. Share passes only the current result to the receiving app you choose; your input is not sent to 123note account storage by sharing. If you sign in with Google, only a completed text conversion you explicitly save with Save conversion is sent to encrypted account storage; files, images, binary results and Data URLs are not saved there. The app shell can work offline after it is cached, but account storage needs a connection. Base64 is encoding, not encryption.

Frequently asked questions

Is this Base64 encoder and decoder free?

Yes. Text, image and file conversion is free and does not require sign-in. A Google account is optional for saving selected text conversions.

How do I convert text to Base64 or Base64 back to text?

Choose Text and the Encode or Decode direction, paste the value, then run the conversion. Text uses UTF-8. If decoded bytes are not valid UTF-8, you can download them instead of treating them as text.

Can I convert an image to Base64 or a Data URL?

Yes. Choose Image and Encode, then select a PNG, JPEG, GIF or WebP file up to 5 MiB. Raw Base64 is available; Data URL and HTML/CSS snippets require Standard Base64 with padding and no line wrapping. Image snippets also require a safely verified image under 16 megapixels.

Can I decode a Base64 image and preview it?

Yes, for a supported image stored as a .txt or .b64 file: choose Image and Decode, then select the file. The tool verifies the image signature and dimensions before preview. A pasted value in Text mode gives a text or byte result, not an inline image preview.

Can I encode or decode other files?

Yes. File mode encodes bytes from a selected file. To decode a Base64 file, provide an ASCII .txt or .b64 file; downloaded output preserves the decoded bytes. One task is limited to 5 MiB of original or decoded data.

What is the difference between Base64 and Base64URL?

They use different characters for values 62 and 63: + and / for Standard Base64, - and _ for Base64URL. Padding is configured separately. Base64URL does not encode a complete URL.

Why does a Data URL or a value with line breaks fail?

Strict mode does not silently remove a header or whitespace. Choose Compatible validation, review the proposed formatting changes, and apply them before decoding. Unsupported media types and missing bytes cannot be repaired automatically.

Is my input uploaded or saved automatically?

No. Conversion runs in your browser. Only when signed in and you press Save conversion is a completed UTF-8 text conversion sent to your account over HTTPS. File and image content is never saved to the account.

Can I share a Base64 result?

Yes. Share result passes the current text or decoded file to the receiving app you choose. Without browser sharing, text is copied for you to paste; download a binary result to attach it manually. Sharing does not save the input to your 123note account.