Number base converter

Processed in this browser

Text limit: 2000000 characters

This tool never uploads your input.

0xFF ↔ 255 ↔ 11111111 for a ticket. Paste a 78-digit modulus and you may get nonsense. File bytes are Base64, not this page.

A register dump in hex, a permission bitmask in binary, a homework problem in base 7. This page changes radix. It is not OpenSSL.

Byte strings that must travel as ASCII are Base64 or file Base64. IPv4 ranges are subnet.

Flags and homework, not IEEE floats

0x1F masks and hex IDs in logs. Integer bases, not a CAS and not a guaranteed IEEE-754 bit view of decimals. Color #RRGGBB is a design tool. Huge integers can lose precision.

How to use it

  1. Pick from-base and to-base.
  2. Paste the digits legal in that base (0-9A-F for hex).
  3. If the value is a crypto scalar, leave and use a bigint tool.

Honest limits

Not arbitrary-precision by promise. Not IEEE hex float. Not a decompiler.

FAQ

Why did a big hex become rounded?

JavaScript Number is IEEE-754. Integers above 2^53−1 are not safe. Use a language bigint in a REPL for crypto sizes.

Two’s complement negatives?

Only if the UI exposes bit width. Otherwise we treat a leading minus as a sign, not a 32-bit wrap.

Is this Base64?

No. Base64 is an alphabet for bytes. This page is numeric radix.

IPv4 as dotted decimal?

Use the subnet calculator for CIDR. You can convert each octet here if you must.

Is the number uploaded?

No.

Related tools