Decimal to Binary Converter

Translate one exact integer representation from base 10 to base 2.

Open Binary to Decimal
Working ruledivide by 2 and read the remainders in reverse order

Decimal accepts digits 0-9.

Bit widthFeature flagsTeachingLow-level data

Check: Padding with leading zeroes changes the display width, not the represented integer. Negative integers are supported; spaces and decimal points are rejected.

Express Integer Values As Bits

Decimal-to-binary conversion helps when planning storage widths, setting feature flags, teaching place value, or checking low-level output. Repeated division by two produces the bit sequence, while powers of two provide a quick way to verify the result. Choose a fixed width only when the receiving system expects padding such as 8, 16, or 32 bits.

Decimal integer As An Exact Integer

Exact positional-integer conversion with BigInt; no numeric rounding.

Signed whole-number grammar with optional matching 0b, 0o, or 0x prefix; output is normalized and hexadecimal is uppercase.

What The Binary integer Output Preserves

Leading zeroes and fixed width are notation choices and are not preserved by normalized output.

Representation Example

42 base 10 produces 101010 base 2 under the declared profile. The calculator carries the value through the operation before formatting the displayed result.

Learn More About This Topic

Use the number-system guide when an integer needs bit-width, padding, or power-of-two context before the result is documented. For more context, read how number systems and text values differ before using the result in a real workflow.

Frequently Asked Questions

Leading zeroes and fixed width are notation choices and are not preserved by normalized output.

No. The numeric base tools use exact BigInt arithmetic after full-string validation. Output is normalized, so leading zeroes and fixed width are not preserved automatically.

Related Converter Tools

More converters in Number Systems Converter: