UTF-8 aware
The encoder handles regular Unicode text by converting strings through UTF-8 bytes before Base64 output.
Browser-based developer tools
Encode and decode UTF-8 text as Base64 without sending input to a backend.
Reference notes
The encoder handles regular Unicode text by converting strings through UTF-8 bytes before Base64 output.
Base64 appears in tokens, request payloads, basic auth headers and compact transport formats.
Base64 is reversible encoding. Do not treat encoded values as secret or protected data.
Base64 validity and UTF-8 validity are different checks. Decode first converts the Base64 alphabet to bytes, then checks whether those bytes form UTF-8 text. A binary attachment can pass the first step and fail the second. This is a text codec, not a binary file viewer or charset detector.
The decoder uses TextDecoder's fatal mode to reject malformed sequences. A leading UTF-8 byte order mark is preserved as U+FEFF rather than silently stripped. Error messages are kept outside the result, and editing input clears old output and metrics before another operation.
| Base64 input | Expected result | Diagnostic purpose |
|---|---|---|
aGVsbG8= | hello | Basic text round trip. |
w6k= | é | Multi-byte UTF-8 character. |
8J+YgA== | U+1F600 emoji | Four-byte UTF-8 sequence. |
/w== | Invalid UTF-8 error | Valid Base64 containing byte FF. |
ww== | Invalid UTF-8 error | Truncated multi-byte sequence. |
%%% | Invalid Base64 error | Characters outside the standard alphabet. |
For URL transport, check whether a plus sign was converted into a space by form encoding. Do not blindly replace spaces with plus signs; compare the original request using the URL codec. Empty text is a valid empty result. Very large payloads can still block the tab; use a local streaming utility for files.
Frequently asked
No. Base64 is a reversible text encoding, not encryption. Anyone can decode a Base64 string back to its original value with no key or password required. Do not use it to protect sensitive data.
Base64 can represent arbitrary bytes, including binary files and text encoded with other character sets. This text decoder rejects bytes that are not valid UTF-8 instead of replacing them. Confirm the producer's encoding; do not assume a valid Base64 string must contain readable text.
Base64 shows up in JWT tokens, HTTP Basic authentication headers, embedding small images directly in CSS or HTML with data URIs, and encoding binary attachments inside JSON or XML payloads.
This tool is built for text and short strings processed entirely in your browser. Very large files may slow down the tab since no data is streamed to a server for processing.