πŸ”’
πŸ’»

Convert Numbers for Programming

Convert between binary, octal, decimal, and hex while writing code β€” instant reference for any number.

Hakuna kuingia kinachohitajika
Input base:

Quick values

Programming tips

πŸ’»

Programmers frequently need to convert between decimal (what humans use) and hex (memory addresses, colours, bit flags).

πŸ’‘

0xFF is 255 in decimal and 11111111 in binary β€” a fully set byte. The "Quick values" panel shows common programming constants like 127, 255, 65535.

πŸ”’

The bit-size panel shows whether your number fits in 8, 16, or 32 bits β€” useful when working with typed arrays or protocol buffers.

🎨

CSS hex colours are base-16: #1A2B3C = R:0x1A (26), G:0x2B (43), B:0x3C (60). Convert each channel separately to inspect the colour.

Jinsi Inavyofanya Kazi

1
Ingiza
Enter your data into the tool above. Everything stays local to your browser.
2
Chakata
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
Pakua
Get your result instantly. Nothing is stored after you leave the page β€” complete privacy.

Kwa nini utumie yetu?

βœ“Bure kabisa β€” bila gharama zilizofichwa, kamwe
βœ“Hakuna akaunti, barua pepe, au kuingia kinachohitajika
βœ“Faili hazitoki kwenye kifaa chako kamwe
βœ“Hakuna kikwazo cha ukubwa wa faili kabisa
βœ“Hakuna alama za maji kwenye matokeo yoyote

Also check out…

Maswali Yanayoulizwa Mara Kwa Mara