Inspecting a flags integer
A permissions or feature-flags value shown in binary reveals exactly which bits are set, which decimal hides.
Convert a decimal number to binary in your browser, with full precision for large values.
Maintained by Roshan.
Converts decimal number to binary in this tab, with nothing sent anywhere.
Find related browser-local tools for nearby tasks without starting another search.
Browse all developer and data toolsConverting a decimal number to binary is where people first meet how computers count, and it stays useful well beyond the classroom, for anyone working with bit flags, masks and low-level protocols. Binary makes the individual bits of a number visible, which is exactly what you need when a value is really a set of on-off switches packed together - a permissions field, a hardware register, a feature-flags integer. As with the other base conversions, the accuracy of large numbers is the thing amateur converters get wrong, because they route through a floating-point value that cannot hold every large integer exactly. This tool uses arbitrary-precision integers, so a number of any size converts to its exact binary representation, every bit correct.
A permissions or feature-flags value shown in binary reveals exactly which bits are set, which decimal hides.
Convert a familiar decimal number and the bits show how base two builds the same value from powers of two.
This converts a number to its binary value. Text to binary encodes characters as UTF-8 bytes and groups them. Different jobs.
Yes, thanks to arbitrary-precision integers. No large value is rounded.
No, only whole numbers.
To see individual bits - useful for flags, masks and low-level work where a number is really a set of switches.
No. The conversion is done in this tab.
Convert a binary number to decimal in your browser, with full precision for large values.
Convert a decimal number to hexadecimal in your browser, with full precision for large values.
Convert text to binary in your browser. Each character becomes its UTF-8 bytes, grouped for readability.