Developer Tools

Base64 Encode / Decode

Live

Encode UTF-8 text as Base64 or decode Base64 back into readable UTF-8 text.

About Base64 Encode / Decode

Encode UTF-8 text as Base64 or decode Base64 back into readable UTF-8 text. Enter operation, input, use url-safe base64 alphabet in a purpose-built workspace that keeps related controls together and makes units explicit. Encoding converts the text to UTF-8 bytes and represents each six-bit group with the Base64 alphabet. Decoding reverses the byte representation and validates UTF-8 output. The result panel reports converted text, input byte count, output character count, operation used with copy-ready values and supporting context. Base64 is an encoding, not encryption. Anyone with the encoded value can decode it, so do not treat it as protection for secrets. Processing stays in your browser and the entered values are not sent to UtilityPages.

Set up Base64 Encode / Decode

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

Complete the fields to prepare a result.

Choose the operation that matches the calculation.

Enter UTF-8 text to encode or valid Base64 text to decode.

Turn use url-safe base64 alphabet on or off.

Base64 Encode / Decode results

Enter the values above, then convert base64 to see the result.

Base64 Encode / Decode method

Encoding converts the text to UTF-8 bytes and represents each six-bit group with the Base64 alphabet. Decoding reverses the byte representation and validates UTF-8 output.

How it works

Encoding converts the text to UTF-8 bytes and represents each six-bit group with the Base64 alphabet. Decoding reverses the byte representation and validates UTF-8 output. Base64 is an encoding, not encryption. Anyone with the encoded value can decode it, so do not treat it as protection for secrets.

Examples

Base64 Encode / Decode example

Example input
{
    "operation": "encode",
    "input": "UtilityPages makes everyday calculations easier.",
    "url_safe": false
}
Expected result
{
    "result": "VXRpbGl0eVBhZ2VzIG1ha2VzIGV2ZXJ5ZGF5IGNhbGN1bGF0aW9ucyBlYXNpZXIu",
    "input_bytes": 48,
    "output_length": 64,
    "operation": "encode"
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Frequently asked questions

How does the Base64 Encode / Decode work?

Encoding converts the text to UTF-8 bytes and represents each six-bit group with the Base64 alphabet. Decoding reverses the byte representation and validates UTF-8 output.

What information should I enter in the Base64 Encode / Decode?

Enter operation, input, use url-safe base64 alphabet. Use values from the same scenario and keep measurement units consistent with the labels shown.

What results does the Base64 Encode / Decode provide?

The result workspace reports converted text, input byte count, output character count, operation used. Supporting values are included so the primary result can be checked and interpreted.

How exact is the Base64 Encode / Decode?

Base64 is an encoding, not encryption. Anyone with the encoded value can decode it, so do not treat it as protection for secrets.