Skip to content
Tools

Number Base Converter

Convert between binary, octal, decimal and hex, with ASCII and byte views.

Local
Convert a number between binary, octal, decimal and hexadecimal, or a string to its byte values. All local.

What this tool does

Convert a whole number between binary, octal, decimal and hexadecimal, and see its byte length and, when it is printable, its ASCII text. A separate text mode turns a string into its UTF-8 byte values in hex, binary and decimal. It uses arbitrary-precision integers, so even very large values convert without rounding. Everything runs in your browser.

Why testers reach for it

Protocol work, bit flags, colour values, permission masks and hardware registers all show up in different bases. Reading a hex status code as binary, or checking that a decimal value matches the hex in a spec, is a constant small task. Doing it locally keeps throwaway values out of a web service.

Common use cases

  • Reading a hex value as binary to inspect individual bits or flags.
  • Converting a decimal constant to the hex a spec uses.
  • Turning a short hex sequence into the ASCII text it encodes.

Frequently asked questions

Does it handle very large numbers?
Yes. It uses arbitrary-precision integers, so values beyond 64 bits convert without rounding.
Can it show the text behind a hex value?
Yes. When the bytes are printable ASCII it shows the decoded text, and a text mode goes the other way to byte values.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.