AI Tools Free

Base64 Encode Decode

Encode Unicode text into standard Base64 or decode padded Base64 back to UTF-8 text. Choose a direction, inspect the output and copy the converted text.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate.

Your result
Enter your details

Result will appear here

How Base64 Encode Decode works

The encoder converts UTF-8 text bytes to standard Base64, while the decoder validates the padded representation and requires valid UTF-8 output.

Whitespace around Base64 can be ignored during decoding, but Base64url is a different alphabet. This changes a representation and provides no encryption.

The field is limited to 100000 characters.

Text and its Base64 representation connected by encoding and decoding paths.
Illustration of the Base64 Encode Decode workflow.

Base64 Encode Decode Quick Reference & Input Guide

Review the input parameters, allowed value ranges, and worked reference cases for the Base64 Encode Decode below before running your calculation.

Parameter / ScenarioDefault / Sample ValueRule or Allowed RangeOutput / Usage Note
Input: Text or Base64(User supplied)Input type: textareaRequired workspace parameter
Input: Direction(User supplied)Options: Encode, DecodeRequired workspace parameter

How to use Base64 Encode Decode

Choose encode or decode and use text in the supported standard Base64 format.

Choose text or encoded input

Select Encode or Decode and enter the source text or standard Base64. Encoding expects Unicode text. Decoding expects canonical standard Base64 with the required padding, not JWT-style Base64url.

Text or Base64
Base64 Encode Decode native input panel with the actual Text or Base64, Direction settings used for this example.
Configure Text or Base64, Direction; select Calculate.

Run the representation change

Run the conversion and inspect the Encoded or Decoded result. Its character total describes the generated output, while the main text panel contains the value to review.

Decoded
Base64 Encode Decode actual result panel showing Decoded.
Submitted result: Decoded. Output characters: 4.

Copy and check the output type

Copy the output after checking the direction. Read the encoding note: this is not encryption. A decoding failure can mean invalid padding or bytes that are not UTF-8 text, rather than a lost password.

Output and export
Base64 Encode Decode actual output and export region and result note after submitting the pictured settings.
Review the actual Base64 Encode Decode output and visible Copy result controls. Read the result note.

When to encode or decode Base64 text

Compare baseline and alternative runs for Base64 Encode Decode before exporting the result.

Inspect an encoded text field

Decode a field documented as standard Base64 text to read its contents. Keep the source field name and encoding convention with your notes. If the field holds binary data instead, a decoding error does not establish that the original data is corrupt.

Developer input and configuration represented by document cards.
Prepare the input. Concept illustration.

Encode UTF-8 text for a test fixture

Encode a small known message for an integration fixture that explicitly expects UTF-8 text in Base64. Use the destination requirements to choose the representation. Encoding here does not create a file upload, sign a message, or send a request.

A developer example flowing from input to reviewed output.
Inspect an example. Concept illustration.

Compare a round trip

Encode text and decode the resulting string to inspect whether the characters survive the round trip. Include meaningful nonASCII characters and line breaks in the sample. This checks the chosen text representation rather than the behavior of a separate application.

Developer output handed to the next stage of a workflow.
Use the result in your workflow. Concept illustration.

Separate encoding from encryption

Review the calculated output alongside your entered parameters and unit conventions.

Every calculation follows the rule: Text is encoded as UTF-8 bytes, then represented using the standard Base64 alphabet. Because JavaScript uses IEEE 754 double-precision floating-point arithmetic, numeric outputs display up to 12 significant digits where applicable.

Always cross-check the displayed result against the scope note (This text tool rejects decoded bytes that are not valid UTF-8. It does not handle arbitrary binary files or URL-safe Base64. Base64 is encoding, not encryption) before applying the value to production specifications, financial models, or lab records.

A developer result reviewed alongside its source.
Review the returned output. Concept illustration.

Check standard Base64 padding and UTF-8 errors

Choose the direction that matches your source and keep meaningful whitespace when it forms part of the text.

Operational scope: This text tool rejects decoded bytes that are not valid UTF-8. It does not handle arbitrary binary files or URL-safe Base64. Base64 is encoding, not encryption. Inputs that violate minimum/maximum bounds or required format rules are rejected with a clear diagnostic prompt.

Need an adjacent calculation in Developer Tools? Use the related tools linked below to chain your workflow without leaving your browser.

Input format and assumptions reviewed for a developer task.
Check format and assumptions. Concept illustration.

Frequently Asked Questions About Base64 Encode Decode

Answers about using Base64 Encode Decode and understanding its results.

Does it support non-English text?

Yes. Unicode text is UTF-8 encoded before Base64 conversion.

Why was decoding rejected?

The input must be canonical padded standard Base64 and decode to valid UTF-8.

Can I decode arbitrary binary files?

This form returns Unicode text and rejects bytes that are not valid UTF-8. It is not a binary-file converter.

Is Base64url accepted?

No. Use canonical padded standard Base64 here. JWTs use their own Base64url segment representation.

Encode or decode standard Base64 text

Choose another tool for your next calculation, conversion, or text task.

Encode or decode text