demo · v138
Binary Converter
Type text, paste binary data, or enter a URL — and instantly see it as UTF-8 bytes, base64 (standard and URL-safe), hex, and decoded back. Uses the new native Uint8Array.fromBase64(), Uint8Array.fromHex(), and toBase64() / toHex() methods.
Checking Uint8Array.prototype.toBase64 support…
UTF-8 bytes
—
base64 (standard)
—
base64url (URL-safe)
—
hex
—
Decode base64 or hex → text
const encoder = new TextEncoder();
const bytes = encoder.encode("Hello, Chrome 138!");
// New native methods — no btoa(), no atob() hacks
const b64 = bytes.toBase64();
const b64url = bytes.toBase64({ alphabet: 'base64url', omitPadding: true });
const hex = bytes.toHex();
// Round-trip decode
const fromB64 = Uint8Array.fromBase64(b64);
const fromHex = Uint8Array.fromHex(hex);
const text = new TextDecoder().decode(fromB64);