Toolkit
All tools
Developer utility · Free

Base64 Encoder & Decoder

Convert Unicode text and local files to or from Base64, with URL-safe output, data URLs, validation, and downloads.

Text and files never leave this browser
UTF-8 text

Text to Base64

Plain text

17 characters

Base64 output

28 characters

Encoded size 28 B
How it works

Reliable Base64 for text and real files.

Use the focused text workspace for quick conversions or switch to file mode when byte accuracy, MIME types, and downloads matter.

  1. 01

    Choose text or file

    Work with Unicode text, open a local file, or paste a Base64 payload or complete data URL.

  2. 02

    Encode or decode

    Results update locally with clear validation. Choose standard or URL-safe output and optional MIME-compatible line wrapping.

  3. 03

    Copy or download

    Copy text and Base64 results, download encoded output, or reconstruct decoded bytes as a file with the right MIME type.

Built for developer workflows

More than a pair of text boxes.

Unicode-safe text

Text conversion uses UTF-8 rather than treating every JavaScript character as a single byte, so accents, emoji, and non-Latin scripts round-trip correctly.

Real file workflows

Encode files up to 25 MB, create full data URLs, inspect encoded size, and turn pasted Base64 back into a named downloadable file.

Standard and URL-safe

Switch between regular Base64 and the URL-safe alphabet, strip padding where appropriate, or wrap output at 64 or 76 characters.

Base64 questions

Encoding is useful, but it is not encryption.

Is Base64 encryption?+

No. Base64 is a reversible binary-to-text encoding. It does not hide or secure information, and anyone can decode it without a password.

Can Base64 encode emoji and accented text?+

Yes. This tool first converts text to UTF-8 bytes, so Unicode content such as emoji, Arabic, Japanese, and accented characters can round-trip safely.

Why does Base64 make a file larger?+

Base64 represents every three input bytes with four text characters, so the encoded payload is usually about one third larger before line breaks or a data URL prefix.

What is URL-safe Base64?+

URL-safe Base64 replaces plus and slash with hyphen and underscore, and commonly omits trailing equals padding. The decoder accepts both alphabets.

Are my files uploaded?+

No. Text encoding, file reading, validation, and file reconstruction happen entirely in this browser. The 25 MB limit protects browser memory rather than a server upload limit.

More focused tools, ready when you are.

Explore the growing collection for calculations, documents, writing, and everyday work.

Browse all tools