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=TextText · Optional · Default: Hello World
-
?mode=ModeChoice · Optional · Default: encode
Outputs
1-
resultResultText · 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()andatob()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”