# Number Base Converter

URL: https://phishdestroy.io/developer-tools/number-base-converter
Category: General dev
Where it runs: Runs locally (nothing you enter is uploaded)

Enter an integer in decimal, binary, octal or hex and see it in all four bases. Handy for obfuscated links such as http://3221225985/, where an IP address is written as one number.

## Example input

IP address written as a number

```
3221225985
```

From Decimal it gives hex C0000201, binary 11000000000000000000001000000001 and octal 30000001001. Read as bytes, C0 00 02 01 is 192.0.2.1.

## FAQ

### Which inputs are accepted?

An integer in the base you pick: binary, octal, decimal or hex. A 0x prefix is accepted in hex mode and a leading minus sign works; the result is shown in all four bases, hex in uppercase without a prefix.

### What are the limits?

Values are JavaScript numbers, so integers above 9,007,199,254,740,991 (2^53 − 1) lose precision. Fractions are cut off, and reading stops at the first invalid digit (12abc reads as 12) instead of reporting an error. For dotted IP forms use the IP Address Converter.

### Is anything sent to a server?

No. The conversion runs in your browser and nothing is uploaded.

## Related tools

- [IPv4 Address Converter](https://phishdestroy.io/developer-tools/ip-address-converter)
- [Binary ↔ Text Converter](https://phishdestroy.io/developer-tools/binary-text-converter)
- [Byte Size Converter](https://phishdestroy.io/developer-tools/byte-size-converter)
- [Chmod Calculator](https://phishdestroy.io/developer-tools/chmod-calculator)
- [Unix Timestamp Converter](https://phishdestroy.io/developer-tools/unix-timestamp-converter)

All tools: https://phishdestroy.io/developer-tools
