- Free
- No sign-up
- Works on any device
No tool matches your search.
- Free
- No sign-up
- Works on any device
Create a QR code for a link, Wi-Fi, WhatsApp, contact and more, or read one from a photo.
- Free
- No sign-up
- Works on any device
Fill in the details to see your QR code.
PNG for phones, chats and websites. SVG and PDF stay sharp at any size, which is best for printing. Tip: point your phone camera at the preview to test it.
3. Style (optional): colors, dots, logo
Choose a photo or screenshot or drag it here
Works with photos of printed codes, screenshots and image files.
Looking for QR codes…
Two's Complement Converter
Converts signed integers to two's complement binary and back for 8, 16, 32 and 64 bits, showing the invert-and-add-one steps, hex and the valid range.
- Free
- No sign-up
- Works on any device
About Two's Complement Converter
Two's complement is the way computers store signed integers. The leading bit is the sign, and a negative number is stored as 2^N minus its size, which can be found by inverting every bit of the magnitude and adding one. For -42 in 8 bits: 42 is 0010 1010, inverted it is 1101 0101, and adding one gives 1101 0110, hex 0xD6. An N-bit field holds -2^(N-1) to 2^(N-1) - 1, so 8 bits run from -128 to 127. Choose 8, 16, 32 or 64 bits and convert in either direction with the steps shown.
How to use Two's Complement Converter
- Choose the direction: decimal to two's complement, or binary or hex back to a signed decimal.
- Enter the value and pick the bit width.
- Read the binary and hex result, the unsigned reading and the invert-and-add-one steps.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
- Free to embed on your own website, with a ready-made code to copy.
- Available in 10 languages.
Also known as
Frequently asked questions
How do I write -1 in two's complement?
In any width it is all ones: 1111 1111 in 8 bits, or 0xFF. Adding one to it overflows back to zero, which is why it acts as minus one.
What is the range of an 8-bit signed number?
From -128 to 127. There is one more negative value than positive, because zero uses one of the non-negative codes.
Why does 1000 0000 mean -128?
The leading one marks it negative, and its value is 128 - 256 = -128. It has no positive counterpart in 8 bits.
Is Two's Complement Converter free?
Yes. Two's Complement Converter on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.
Can I put Two's Complement Converter on my own website?
Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.