Base64 Encoder & Decoder

Convert text to Base64 and back, with full support for Urdu, Arabic, emoji and other Unicode text. You can also encode a whole file, such as an image, and use URL-safe Base64 for links and tokens.

Your text

What do you want to do?
Or encode a file

Up to 10 MB. The file is read on your device, not uploaded.

Result

    How to use the Base64 Encoder & Decoder

    1. Choose Encode or Decode.
    2. Type or paste your text or Base64, or choose a file to encode.
    3. Copy the result or download it.

    Your data stays on your device. This tool runs entirely in your browser. Nothing you type or paste is sent to our server or saved. Read our privacy policy.

    What is Base64?

    Base64 turns any data, including text and binary files, into plain letters, digits, + and /. It's used where only text is allowed: email attachments, data URLs in HTML and CSS (data:image/png;base64,…), JSON payloads, HTTP Basic authentication headers and JSON Web Tokens.

    Base64 is not encryption

    Anyone can decode Base64 in a second, so never use it to hide passwords or secrets. It's an encoding, not a lock.

    Why is the result bigger?

    Every 3 bytes become 4 characters, so encoded data is about 33% larger. A 30 KB image becomes about 40 KB of text. That's why data URLs are best for small icons, not large photos.

    URL-safe Base64

    Standard Base64 uses + and /, which have special meanings in web addresses. URL-safe Base64 replaces them with - and _ and often drops the = padding. JWTs and many APIs use this form.

    Unicode text works

    Text is converted to UTF-8 before encoding, so Urdu, Arabic, Hindi and emoji encode and decode correctly. If decoding shows strange characters, the data may be a file rather than text, or it was encoded with a different character set.

    For web addresses, use the URL Encoder instead.

    Frequently asked questions

    What is Base64 used for?

    Base64 turns any data into plain letters and numbers so it can travel safely through systems that only handle text, such as email, JSON, URLs or data: links for images in HTML and CSS.

    Is Base64 encryption?

    No. Anyone can decode Base64, so never use it to hide passwords or private data. It is a way of packaging data, not protecting it.

    What is URL-safe Base64?

    Standard Base64 uses + and /, which have special meanings in web addresses. URL-safe Base64 uses - and _ instead and drops the = padding. The decoder accepts both forms.