## Hex, Decimal, and Binary Converter
*June 29, 2007*

This web calculator converts numbers between the hexadecimal (hex), decimal, and binary formats. The calculator was designed to allow easy conversion between any of these three formats. This task is very common for those working with digital hardware and software including microcontrollers, DSPâ€™s, FPGA, etc.

**Tips:**

- Type a number into any cell below and it will be converted into the other two formats.

- Updates occur automatically as you type.

**User Inputs and Results:**

Hex: | |

Decimal: | |

Binary: |

**Option Scale Factors:**

A: | |

B: | |

C: |

**Scaled Result = Decimal_Value*A/B + C**

Scaled Result: |

As an example, the Scale factors can be used for an 8-bit A/D converter. With a 2V full scale, A=2, B=255, and C=0. The scale factors may be changed as desired.

- Posted in : Calculators, Electrical Engineering
- Author : Brad

## Comments

It would be even more versatile if you include a decimal equivalent, 0.0 to 100.00 corresponding to 0 to 255.

It seems like the mapping to the decimal equivalent would be different in every application. I suppose I could have an optional input box for the full-scale decimal value. (e.g. 100.0 in your case). It might be handy for A/D converters. Okay - I’ll try it shortly.

Brad

Any chance you could add a reverse-BCD to this? so you can put in a BCD value and it’ll spit out a binary value?

Hi Adam,

You can do it one digit at a time by entering the decimal digit and getting the binary value. Is that what you meant?

Brad