DeveloperFormula-based · Runs in your browser

Base64 Converter

Encode and decode Base64 strings.

Loading calculator…

Saved locally, explained clearly

Drafts, calculations, scenarios, and workflow progress stay in this browser unless you export them.

Opening local database…

Calculation steps

Follow what happened from the selected formula to the displayed answer.

Show substituted values and intermediate working
Calculate current inputs to see the working.
  1. 1

    Formula selected

    The calculator uses the following formula or method.

    Encode converts UTF-8 bytes to Base64; decode converts valid Base64 bytes back to UTF-8 text.

  2. 2

    Values entered

    Your values are placed into the calculation.

    Enter values to see what is used in this step.

  3. 3

    Result calculated

    The formula or method produces the following result values.

    Results will appear after a successful calculation.

  4. 4

    Answer formatted

    Displayed values are rounded and formatted using each output’s configured precision.

Scenario comparison

Save working scenarios, then select two or three to compare. Formula versions and inputs remain visible.

No scenarios saved for this calculator yet.

Recent calculations

Successful calculations are retained locally according to your privacy settings.

No local history for this calculator yet.

Data and privacy

How it works

Encode and decode Base64 strings.

Input query strings and outputs

Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.

Input query strings

2
  • ?text= Text

    Text · Optional · Default: Hello World

  • ?mode= Mode

    Choice · Optional · Default: encode

Outputs

1
  • result Result

    Text · Primary output

result contains the calculator’s complete rendered result area, including its visible result cards, tables, charts, and messages.

Encode and decode text into Base64 format

Description

The Base64 Converter is a fundamental tool for web developers and data engineers. Base64 is a scheme used to represent binary data in an ASCII string format. This tool allows for quick Encoding (converting text to Base64) for data transmission and Decoding (converting Base64 back to text) for data processing.

Inputs

  • Mode Selection: Switch between “Text to Base64” (Encode) and “Base64 to Text” (Decode).
  • Input Area: Paste your source text or Base64 string here.

Outputs

  • Output Area: The resulting converted string.

Chart

  • N/A: This tool provides direct text conversion.

“Good to Know”

  • Data URIs: Base64 is often used to embed small images or icons directly into HTML or CSS files using “Data URIs.”
  • Standard format: This tool uses the standard JavaScript btoa() and atob() functions, which are the industry standard for Base64 handling in web environments.
  • URL Safety: Standard Base64 can contain characters like + and / which aren’t URL-safe. Ensure you check your requirements if you’re using this for URL parameters.

Examples

Example 1: Simple Encoding

  • Input: “Hello World”
  • Output: SGVsbG8gV29ybGQ=

Example 2: Complex String

  • Input: “OmniCalc Pro”
  • Output: T21uaUNhbGMgUHJv

Example 3: Error Handling

  • Input: Invalid_Base64_String!
  • Output: “Error: Invalid input”
Sources
  • No external reference is listed for this calculator. Its formula and variable definitions are shown above.
Limitations
  • Output is generated locally. Check the required format, character encoding, and compatibility with the system that will use it.