QA Toolbox logoQA Toolbox

Base64 Encode

Encode text to Base64 (UTF-8 safe).

About Base64 Encode

Base64 Encode converts plain text into Base64 — the encoding used for HTTP Basic auth headers, data URIs, email attachments, JWT segments and any place binary-unsafe channels need to carry arbitrary content. This implementation is UTF-8 safe, so emoji and non-Latin characters encode correctly rather than throwing the classic btoa() range error.

For QA, the everyday uses are building Authorization: Basic headers for API tests, crafting encoded payloads for fixtures, and checking what a system should have produced for a given input.

How to use

  1. Type or paste your text into the input box.
  2. The Base64-encoded output appears immediately.
  3. Copy it into your header, fixture or request body.

Frequently asked questions

Is Base64 encryption?

No — it is a reversible encoding, not encryption. Anyone can decode it instantly. Never treat Base64 as a way to hide secrets; it only makes data safe to transport as text.

How do I build a Basic auth header?

Encode username:password (with the colon) and prefix the result with "Basic " in the Authorization header. This tool handles the encoding step.

What makes this encoder "UTF-8 safe"?

Text is converted to UTF-8 bytes before encoding, so characters outside Latin-1 — emoji, Chinese, accented text — encode correctly, unlike a naive btoa() call which throws on them.

Related tools