CalcToolsKitSimple tools. Clear answers.

UTF-8 Base64 Text Calculator

Free · No sign-up

Encode and decode small text locally.

Additional calculations: Base64 text and binary files

Your inputs

Example values are shown. Edit them for your calculation.

Results update automatically as you edit.

Inputs stay in this page. No account needed.

Your result

EVERYDAY

Example values are prefilled. Results update automatically when JavaScript is available.

Base64 text and binary files

Encode/decode text with a selected character set and Base64 alphabet, or convert a local binary file to/from Base64. File conversion is browser-local and limited to 10 MiB.

How this calculation works

Base64 maps each 24-bit byte block to four 6-bit characters. Base64url substitutes - and _ for + and /. UTF-16 is explicitly little- or big-endian; no byte-order mark is added.

No uploads are sent to a server. File conversion is capped at 10 MiB to limit memory use. Decoding checks alphabet, padding, pad bits and text validity. Arbitrary binary data should be downloaded rather than decoded as text.

What this tool calculates

Encode and decode small text locally.

Inputs used: Text or Base64, Operation.

Calculation modes and inputs
Operation
UTF-8 text to Base64, Base64 to UTF-8 text

Choose the mode first. Only the fields relevant to that calculation are used; the result heading identifies the reported quantity.

On this page How it works & practical examples

How to use the UTF-8 Base64 Text Calculator

Encode and decode small text locally. Input is limited to 10,000 characters, and decoder validation rejects malformed Base64 or bytes that are not valid UTF-8.

The calculation

Encode UTF-8 bytes in four-character Base64 groups; reverse only valid UTF-8 text

Worked example

Hello encodes to SGVsbG8=; Chinese and emoji text are encoded as UTF-8 rather than Latin-1.

Assumptions and limits

Encoding is not encryption. The primary text fields accept up to 10,000 characters and validate the selected text encoding. The separate local-file panel supports binary bytes, standard Base64 and Base64url up to 10 MiB; file contents are handled in your browser and are not uploaded.

AboutContactPrivacy PolicyTermsDisclaimerAll calculatorsSitemap