- Enter text on the left and press Encode, or paste Base64 on the right and press Decode.
- Review the result and byte/character counts.
- Copy the required panel; clipboard access depends on your browser.
- Clear resets both editors.
Convert text, not arbitrary files
This tool encodes text as UTF-8 bytes and then standard Base64. Decode reverses that process only when the bytes form valid UTF-8 text. It does not import images, download binary files or parse data-URL prefixes. Hello becomes SGVsbG8=; Arabic, Chinese and emoji use multiple UTF-8 bytes.
Accepted Base64
The standard alphabet uses A–Z, a–z, 0–9, plus and slash. Correct trailing padding is accepted, and omitted padding is supported where unambiguous. ASCII spaces, tabs and line breaks are ignored. Invalid padding, nonzero unused bits, Base64url minus/underscore characters and invalid UTF-8 are rejected. A failed operation clears its destination so an old result cannot look successful.
Size and Unicode limits
Encoding accepts up to 200000 JavaScript UTF-16 code units. Base64 input accepts up to 1000000 characters including whitespace. UTF-8 decoding preserves a leading BOM; the encoder replaces isolated surrogate code units. Counts show current UTF-8 text bytes and Base64 editor characters, so whitespace affects the displayed ratio. Clearing editors does not guarantee secure memory erasure.
Processing and privacy
Text conversion runs in the browser without a remote conversion API. Site assets and analytics may still use the network. Base64 is encoding, not encryption or password protection. For hexadecimal bytes use Text to Hex.