Financial CalculatorsDate & Time CalculatorsHealth CalculatorsMath CalculatorsLength ConvertersWeight ConvertersTemperature ConvertersArea ConvertersVolume ConvertersSpeed ConvertersData & File Size ConvertersDigital & Data ToolsText ToolsGeneratorsImage & Video Tools About Practical guides Contact
Processed locally in your browser

Base64 Encoder

Encode UTF-8 text as standard Base64, including accents and emoji.

Result

  

What this encoder produces

The tool first converts your text to UTF-8 bytes, then represents those bytes using the standard Base64 alphabet. Output uses + and /, with = padding when needed. It produces a single line without adding a newline to your original text.

Text and exact encoded output

Hello → SGVsbG8=
café → Y2Fmw6k=. The accented letter uses more than one UTF-8 byte.
👋 → 8J+Riw==
Hello with a final space → SGVsbG8g. Spaces and newlines are part of the input, so apparently similar text can have different output.

Formula / Calculation Method

Encoded length = 4 × ceil(UTF-8 byte count ÷ 3). Padding fills the last group when necessary.

How to Use This Tool

  1. Enter the exact text, including any spaces or line breaks you want to preserve.
  2. Click Encode to Base64.
  3. Copy the result and check that your destination expects standard Base64.

Common Use Cases

Creating an encoding test fixture
Representing UTF-8 text in a Base64 field
Comparing payloads that differ in whitespace

Choose the format your destination expects

This tool generates standard Base64, not Base64url. JWT segments and some URL parameters use a different alphabet and may omit padding; check the receiving system before pasting standard output there. This text encoder does not upload or encode image and document files.

Base64 does not protect a secret

Anyone who has the output can decode it. Use it when a protocol requires a text representation of bytes, not to hide passwords or confidential messages. Encoding happens in this browser. Use the decoder to confirm the exact text comes back.

Related Tools

Practical walkthroughs

Frequently Asked Questions

Why is the output longer than my text?

Base64 groups every three bytes into four characters, plus padding for an incomplete group. Unicode text may use several bytes per visible character.

Does the tool remove whitespace?

No. Spaces, tabs, and line breaks in text are encoded too.

Is this encryption?

No. It is reversible encoding with no key or confidentiality.

Sources & References

See how we test and maintain our tools. Found a problem? Report the inputs and expected result.