Chuyển tới nội dung chính
Z

How to Decode Base64 (Step by Step)

Decode a Base64 string back to text or binary in your browser — step by step, with a free Base64 decoder.

Base64 turns binary into text; decoding reverses it. Here is how to decode a Base64 string safely in your browser, with nothing uploaded.

  1. 1

    Open the decoder

    Open the Base64 tool and switch it to decode mode.

  2. 2

    Paste your Base64

    Paste the Base64 string into the input. It is processed locally — nothing is sent to a server.

  3. 3

    Read the result

    The decoded text appears instantly. If the input was binary (e.g. an image), decode to a file instead.

Do it now

Câu hỏi thường gặp

Sự khác nhau giữa \xAB và \u{HEX} là gì?

\xAB đại diện cho một byte UTF-8 — ký tự nhiều byte sẽ mở rộng thành nhiều chuỗi thoát. \u{HEX} là một code point Unicode — mỗi ký tự chỉ cần một chuỗi thoát, bất kể độ dài UTF-8. Template literal trong JS hiểu được cú pháp \u{...}.

Tại sao emoji lại chiếm 4 byte?

Nhiều emoji nằm trên U+FFFF nên cần tới 4 byte UTF-8. Dạng chuỗi thoát code point (\u{1F680}) hiển thị chúng như một ký tự logic duy nhất.

Công cụ có giải mã được định dạng trộn lẫn không?

Không — đầu vào phải toàn bộ là hex, toàn bộ là decimal, toàn bộ là \xAB, hoặc toàn bộ là \u{} để việc nhận diện không bị nhầm lẫn. Hãy tách phần đầu vào bị trộn lẫn và xử lý riêng từng phần.

Chỉ cần mã hóa Base64 thôi?

Hãy dùng công cụ Base64 Encoder & Decoder của chúng tôi — đưa vào văn bản hoặc file, nhận về Base64.