Skip to main content

Find your next tool

Prepare, check, then export

Number Base Converter — Binary, Decimal, Hex & Octal

Convert a single integer or a list without floating-point rounding. See all four bases together, with optional signed bit-width interpretation.

In fixed-width mode, decimal input is a signed value; binary, octal and hex inputs are nonnegative bit patterns. Overflow is rejected.

100 lines, 1,024 digits per row and 100,000 input characters. Blank lines are skipped while original line positions remain.

Benefits

  • Preserve integer values beyond ordinary floating-point precision.
  • Make signed interpretation explicit with 8, 16, 32, 64 or 128 bits.
  • Keep valid rows when another row fails and download a complete report.

When this helps

  • Check integer fields in technical logs and firmware notes.
  • Teach positional notation and signed bit patterns.
  • Convert values for a calculation report or document.

How to use this tool

  1. Choose the input base and integer interpretation.
  2. Paste one integer per line, import UTF-8 TXT or load the example.
  3. Review all four bases and any line-specific error.
  4. Download the report or carry a smaller report into the text/PDF workflow.

Keep integer values exact and signedness explicit

A base changes the way a value is written, not the value itself. Decimal 255, binary 11111111, octal 377 and hexadecimal FF describe the same nonnegative integer. Positional notation assigns a power of the base to each digit. Reading left to right, you can build the value by multiplying the current total by the base and adding the next digit.

Large values deserve special care. Ordinary JavaScript floating-point numbers cannot represent every integer above 9,007,199,254,740,991 exactly. This converter accumulates digits using integer arithmetic, so an identifier such as 9,007,199,254,740,993 retains its final digit. Input limits still apply to keep the workspace responsive; exact arithmetic does not mean unlimited input size.

Signed bit patterns need a width. In eight-bit two’s complement, FF represents minus one; in sixteen bits, 00FF represents positive 255. Decimal input in this mode is interpreted as the signed value to encode. Input from the other bases is interpreted as a nonnegative bit pattern. The converter rejects overflow rather than silently discarding high bits, and shows the interpretation of the first valid row.

Use one integer per line when converting a list. Blank lines are skipped but their line positions remain reflected in the results. Invalid rows carry an explanation while valid rows stay available. This tool intentionally excludes fractional numbers, scientific notation and byte-to-text decoding. Those tasks involve different rules. For a message encoded in binary or hex bytes, follow the related text translator instead.

Formats, limits and privacy

  • 100 lines, 1,024 digits per row, 100,000 input characters and 1 MiB per TXT import.
  • Integer bases 2, 8, 10 and 16 only. No fractions, scientific notation or thousands separators.
  • Fixed-width modes use signed two’s complement. Negative nondecimal fixed-width inputs are rejected.
  • Reports above 100,000 characters can be downloaded but cannot enter the smaller document workspace.

These tools process text locally. There is no draft autosave. Download important work before leaving; temporary file handoffs expire after 30 minutes.

Frequently asked questions

Does it round large integers?

No. Digit accumulation and conversion use exact integer arithmetic within the stated limits.

Why can FF mean 255 or minus one?

Unbounded conversion reads FF as 255. An eight-bit signed two’s complement interpretation reads the pattern as minus one.

Can I decode hexadecimal text here?

Use the hex-text converter for messages. A number base does not specify a character encoding.

Continue your document workflow

Use a Continue button inside the workspace to carry your text; these links open a fresh tool.