Base64, Hex & ASCII Converter

Convert firmware blobs between base64, hex and raw bytes, with size and checksum readouts.

Example: 5 bytes: 48656C6C6F — CRC-32 0xF7D18982.

Check it against real silicon

Chiprun runs your firmware on an emulated microcontroller and hands back the UART output, so you can confirm these numbers rather than trusting them.

Chiprun docs

Formula

base64 packs 3 bytes into 4 characters — a 33% size increase

Worked example

5 bytes: 48656C6C6F — CRC-32 0xF7D18982.

  1. base64 packs 3 bytes (24 bits) into 4 six-bit characters

    5 bytes → ceil(5/3) × 4

    8 characters

    Trailing = signs pad the final group when the length is not a multiple of three.

Frequently asked questions

Why is base64 33% larger than the original?

Because it represents 3 bytes (24 bits) using 4 characters of 6 bits each. That is the cost of restricting the output to a safe printable alphabet, which is what lets binary data survive email, JSON and other text-only transports.

What do the trailing equals signs mean?

Padding. Base64 works in 3-byte groups, so when the data does not divide evenly the final group is padded — one = for two leftover bytes, two = for one. Some decoders accept base64 without padding; some do not.

What is URL-safe base64?

The same encoding with - and _ replacing + and /, because those two characters have meaning in URLs and filenames. This tool accepts either on input. Padding is often omitted in the URL-safe form too.

Related tools