Web & Developer Utilities100% Client-Side

Base64 Encoder for UTF-8 Text

This tool converts text to UTF-8 bytes and represents those bytes as Base64 characters. Use it when an API, file format, or test fixture expects an encoded text value. The standard option produces the usual Base64 alphabet, with padding when needed. If the destination expects a URL-safe value, you can switch to the alternate alphabet and omit the padding. Line wrapping is also available for formats that need it.

Configuration Options

Replaces + with - and / with _, stripping trailing padding equals signs.

Formats long output into 76-character chunks for MIME/email standards.

Input
37 chars•1 lines
Output

Reverse tool

Base64 Decoder

Decode standard and URL-safe Base64 into readable UTF-8 text. Inspect wrapped values, missing padding, or encoded JSON directly in your web browser.

Open Base64 Decoder
Example input
RnJlZUhvc3RpbmdUcnVzdCBEZXZlbG9wZXIgVG9vbHMgMjAyNg==
Example output
FreeHostingTrust Developer Tools 2026

How to Use the Base64 Encoder Online

  1. 1Paste the original text, including any accented characters, line breaks, or punctuation that should be part of the result.
  2. 2Keep the default for standard Base64. Turn on URL-Safe Base64 when the receiving field expects hyphens and underscores instead of the standard symbols.
  3. 3Enable Split Lines if your destination calls for lines up to 76 characters. Leave it off when you need a single string in a configuration field.
  4. 4Copy the result and check it with the Base64 Decoder if you need to verify that it restores the expected text.

Input & Output Examples

The accented letter is encoded using its UTF-8 bytes along with the three ASCII letters.

Input Sample
Café
Expected Output
Q2Fmw6k=

A short JSON document becomes an encoded string you can use as a fixture when the receiving system expects Base64.

Input Sample
{"mode":"test"}
Expected Output
eyJtb2RlIjoidGVzdCJ9

Practical Developer Workflows

  • Create an encoded text fixture for a unit test that checks whether an API decodes a UTF-8 payload correctly.
  • Prepare a short configuration value for a system that specifically asks for standard or URL-safe Base64 text.
  • Compare how a Unicode string and an ASCII string are encoded when debugging an integration that handles both.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

Use the variant specified by the receiving system. Standard Base64 can include plus signs, slashes, and equals-sign padding. The URL-safe setting here uses hyphens and underscores and removes trailing padding, which some token and configuration formats require.

Explore Other Tools

12 suggested tools

View all tools