TOOL · ON YOUR DEVICE
Binary, decimal and hex converter for free
Type a number in any field and the others update instantly: binary, octal, decimal, hexadecimal and another base from 2 to 36. It also works out the two’s complement in 8, 16, 32 or 64 bits and turns text into UTF-8 bytes in binary, hexadecimal or decimal, and back.
- Free account to copy
- Bases 2 to 36
- Two’s complement and UTF-8
- Type the number
- Adjust how it looks
- Try bits and text
HOW TO USE IT
Three steps.
Type the number
In any field, with a minus sign if it is negative. It accepts up to 1,200 digits with no rounding, and prefixes such as 0x or 0b.
Adjust how it looks
Group the digits, add the 0b, 0o and 0x prefixes or choose uppercase letters. Each result has its own “Copy” button.
Try bits and text
For two’s complement, choose 8, 16, 32 or 64 bits. For text to bytes, type some text or paste bytes to read them.
NEXT STEP
Keep going with these tools
Binary converter: common questions
How do you convert decimal to binary?
Divide the number by 2 again and again and read the remainders from bottom to top: 13 is 1101. The tool does it instantly with integers of up to 1,200 digits, without the 53-bit limit of many calculators.
What is two’s complement?
It is the usual way to store signed integers in memory: the first bit shows whether the number is negative. For example, −5 in 8 bits is 11111011. Choose the size in bits to see the range that fits.
Why does an accented letter take two bytes?
Text is encoded as UTF-8: basic letters take one byte, ñ and accented vowels take two and many emoji take four. That is why ñ is 11000011 10110001.
Is my text sent to a server?
No. Everything is calculated in your browser as you type; the text is not sent to Cocuyo or any third party and is not stored. You can check it in your browser’s network tools: your file is not sent.
Does it use credits?
You can convert and view the result without an account. Copying the result with the button requires a free account. Local use does not consume credits or welcome uses.
Can I convert fractions or numbers with a decimal point?
No. The number fields take whole numbers only, with an optional minus sign. A point or a comma is refused with a message that it is not a valid digit in that base, such as “.” is not a valid digit in base 10.
Can I paste 0xFF into the decimal field?
No. Each prefix is recognized only in its own base: 0b for binary, 0o for octal and 0x for hexadecimal. In the decimal field, 0xFF shows an error because “x” is not a valid digit in base 10. Spaces, underscores and apostrophes are ignored, so grouped numbers paste fine.
How do I read a signed bit pattern?
Under “Read a signed bit pattern”, choose 8, 16, 32 or 64 bits and type the pattern: 11111011 in 8 bits gives −5. A shorter pattern is padded with zeros on the left and reads as a positive number, and a longer one shows “The pattern has more than 8 bits.”
What byte formats does the text section accept?
Bytes can be separated by spaces, commas, semicolons or line breaks; binary bytes may start with 0b, and hexadecimal bytes with 0x or \x. Without separators, binary is cut every 8 digits and hexadecimal every 2. A byte above 255, or bytes that are not valid UTF-8, show an error.
What is the limit for the text and byte boxes?
The text box stops at 2,000 characters, so any extra text is not accepted. The bytes box reads up to 8,000 bytes, and a longer input shows that it is too long to convert here. Number fields take up to 1,200 digits, and a longer number shows the same message.
MORE FREE TOOLS
Other text tools
All free tools
WHEN YOU WANT TO CREATE
Make new images with AI.
Cocuyo’s Studio brings 30+ AI models for image, video and voice together. You see the credit cost before generating, and credits never expire.
































































