Converter

Number Base Converter

Enter a whole integer in binary, octal, decimal, or hexadecimal and see the same value in all four bases using BigInt (no Number precision loss past 2^53). Optional 0b / 0o / 0x prefixes on output. Everything runs locally — nothing uploaded to DroidXP, matching the local-first approach of APK Analyzer and APK String Extractor.

Ad placement — top banner

Integers only; spaces / underscores allowed as separators. Max ~4096 significant characters.

For metres, kg, and litres, use Unit Converter. For money with live FX, use Currency Converter.

Ad placement — mid rectangle

Why BigInt?

JavaScript Number is a 64-bit float — integers above 2^53 - 1 are not all representable. BigInt holds arbitrarily large whole numbers, which is what you want when converting long binary or hex strings.

Input rules

Choose the base you are typing in. Optional ECMA-style prefixes (0b, 0o, 0x) are accepted when they match that base. Digits must be valid for the base (e.g. no 8 or 9 in octal).

Privacy

No server round-trip — parsing and formatting stay in your browser. Last input and options may be stored in localStorage on this site only.

How to use this tool

  1. Step 1: Select the input base and type your integer (prefix optional).
  2. Step 2: Toggle output prefixes if your toolchain expects 0b / 0o / 0x.
  3. Step 3: Use per-field copy or Copy all for logs, tickets, or code.

Frequently Asked Questions

Does DroidXP upload my numbers?

No. Parsing and radix conversion run entirely in your browser. Your input is not sent to DroidXP servers.

Why BigInt instead of JavaScript Number?

IEEE-754 doubles lose precision past 2^53. BigInt keeps arbitrarily large integers exact for bases 2, 8, 10, and 16.

Can I paste values with 0b, 0o, or 0x prefixes?

Yes — those prefixes are stripped when they match the selected input base. Spaces and underscores are ignored as digit separators.

Are fractions supported?

No — this tool is for whole integers only. For fractional values, use a dedicated rational or floating tool.

How are negative values shown?

A leading minus is preserved. Non-decimal outputs show the sign and magnitude (e.g. -0xff) rather than two’s-complement bit patterns.

What is the input length limit?

Very long digit strings are capped to keep the page responsive. If you hit the limit, split the problem or use a local script.

Does this replace a programmer’s calculator?

It covers radix conversion well. Bitwise ops, floats, or IEEE encoding need other tools.

How is this different from the Unit Converter?

The Unit Converter converts physical units (metres, kg). This page re-represents the same integer in different numeric bases.

Same privacy model as APK Analyzer?

Yes — like our APK Analyzer, everything stays in your browser tab; optional localStorage remembers your last base and prefixes.

Why might hex be uppercase vs lowercase?

Output uses lowercase a–f by convention; parsers accept A–F in input. Copy as needed for your style guide.

Can I use this for cryptographic keys?

You can convert representations, but treat keys as secrets — do not paste sensitive material into untrusted sites, including on shared computers.