Base64 converter

Calculate base64 converter with clear inputs and assumptions.

Calculate base64 converter with clear inputs and assumptions.

Both dots and commas are accepted as decimal separators.

Your inputs stay in your browser. Displayed results are rounded to a maximum of 12 significant digits.

Method and assumptions

Method version 1.0.0 · Updated

Calculate

Formula: Calculate base64 converter with clear inputs and assumptions.

Calculate base64 converter with clear inputs and assumptions.

value
Text or Base64
mode
Mode

Results are estimates where noted and depend on the entered assumptions.

Calculate with code

These short examples use the same inputs and core calculation as this tool. Adapt validation and formatting to your application.

JavaScript
const text = "SumHexa";
console.log(btoa(text)); // U3VtSGV4YQ== (ASCII input)
TypeScript
const text = "SumHexa";
const encoded: string = btoa(text);
console.log(encoded); // U3VtSGV4YQ==
Python
import base64
print(base64.b64encode(b"SumHexa").decode())  # U3VtSGV4YQ==
Java
System.out.println(java.util.Base64.getEncoder().encodeToString("SumHexa".getBytes(java.nio.charset.StandardCharsets.UTF_8)));
C#
Console.WriteLine(Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("SumHexa"))); // U3VtSGV4YQ==