Calculation
Number Base
Type a value in decimal, binary, hexadecimal, octal, or Base64. The other forms update together, including a grouped bit view. Values that fit in 24 bits also show the matching RGB color.
Quick start
- 1
Pick any field
Type in decimal, binary, hex, octal, or Base64. Prefixes such as 0x, 0b, and # are accepted.
- 2
Read the other forms
The remaining fields update from the value you typed.
- 3
Check the color
A value that fits in 24 bits shows a hex color and its red, green, and blue channels.
- 4
Use a leading minus
Negative numbers keep the sign. Base64 and the bit count use the magnitude.
Features
Four bases
Move between decimal, binary, octal, and hexadecimal, including 0x and 0b prefixes.
Base64 bytes
Read the same unsigned value as the shortest big-endian Base64 form.
RGB
A 24-bit hex value shows red, green, and blue.
Specifications
- Bases
- 2, 8, 10, 16, Base64
- Size
- Up to 4,096 bits
- Color
- 24-bit RGB
- Privacy
- Processed on the toolbox API
Use cases
- Turn a color hex into RGB.
- Read a bitmask in binary.
- Paste a small Base64 integer and see its decimal value.
Frequently asked questions
How is Base64 interpreted?
The bytes are read as one unsigned big-endian integer, then shown in the other bases.