Transcode
Docs
InputText
OutputText

Decimal to Binary

Convert numbers between decimal, binary, octal and hexadecimal bases.

Paste your input on the left and press Translate (or Ctrl/Cmd + Enter) to get the result on the right. Free, no sign-up.

Example

Input
42
255
1024
Output
101010
11111111
10000000000

Frequently asked questions

How do I read a binary number?
Each digit is a power of two, starting from the right. For example 1010 is 8 + 2, which is 10 in decimal.
What input is accepted?
Whole numbers of any size, including negatives, one per line. Underscores are ignored and 0b, 0o and 0x prefixes are accepted.