HomeDeveloper toolsNumber Base Converter

Number Base Converter

Convert large signed integers between binary, decimal, hex, and bases 2–36.

Processing stays in your browser. Supports signed whole numbers without rounding, including integers larger than JavaScript's normal number range.

How to use the number base converter

Enter a signed whole number and choose input and output bases from 2 to 36. The tool uses integer arithmetic so large values are converted without rounding. Binary, octal, and hex inputs may use matching 0b, 0o, and 0x prefixes.

Example

Decimal 255 becomes hexadecimal FF, binary 11111111, and octal 377.

Good to know

Fractions and scientific notation are not supported. Negative values use a minus sign; the output is not a fixed-width two's-complement representation.

Preserve the exact bytes and character convention

Identify whether the input represents text, raw bytes or a number. Text needs a character encoding such as UTF-8, while hexadecimal, binary and Base64 describe ways to represent bytes or values. Preserve separators and padding according to the selected format. Include a non-ASCII character in a text test so an incorrect character encoding does not remain hidden behind an ASCII-only example.

How to review the result

Compare the output byte count and, where an inverse operation is supported, test a round trip with the same settings. A visually identical string can have different Unicode normalization or line endings. A numeric base conversion is also different from interpreting the same digits as encoded text. Encoding is not encryption: changing a representation does not hide the information from someone who knows that representation.

  • Confirm the text encoding, numerical base and expected grouping or padding.
  • Compare bytes for a small known example rather than judging only the rendered text.
  • Use the reverse operation where available and check that the original information returns.

Common questions about this workflow

Why does one character produce several byte groups?

A character's encoded length depends on the encoding. UTF-8 uses more than one byte for many characters outside ASCII. Treating every displayed character as one byte can corrupt the result.

Can encoded text protect a password or secret?

No. Representations such as Base64 and hexadecimal are reversible without a secret key. Use the security mechanism required by your application rather than relying on an unfamiliar-looking string.

Built by DevBricks Technologies. Found an unexpected result in Number Base Converter? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.