Hex, binary, decimal, octal and ascii converter

Edited 03. Dec 2010, 14:56
Published 08. Nov 2010, 01:53

This is an advanced converter where you can convert between hex, binary, decimal, octal and ascii without even changing form or page. You can specify your own delimiters like colon or dashes for parsing more complex structures. You'll also have a history functionality so you can go back in case you made a mistake or want to compare the original and the new result. Read on for more information.

This converter makes it easy for you to convert between different types practically instantly. Simply fill out the textbox below and then choose the type you want to convert to.




Hints and tips

  • Use the "Prev" and "Next" buttons to traverse through the conversion history.
  • If your intention is to convert a number to a different type consider using the decimal type instead of the ascii type for best results.
  • Point precision numbers (ie. 3.14) are currently not supported in binary conversion.

The input type

The input type determines how the conversion is performed, so make sure it's correct. Fortunately the type automatically changes when you convert so you don't have to worry about it too much. You can change it manually whenever you wish.


If the auto delimiter option is checked, the delimiters will be automatically set and changed for you. You don't need to manually change the delimiters as different conversions may have different output, so your conversion experience will be smooth and fast. If you wish to change the delimiters manually for a more customized conversion, you can do so by turning off the auto delimiter option and setting the delimiters of your choice.

The split delimiter is the delimiter that is used to seperate the individual parts of the text. Perhaps you have a MAC address that uses the colon delimiter (ie. 01:23:45:67:89:ab), then the colon would be the appropriate split delimiter. The glue delimiter is like a reverse version of the split delimiter, it is used when you're putting togheter the individual parts after a conversion. Let's say you would want to convert a sequence of hexadecimals which are delimited by a space into a normal word without the spaces. To achieve this you set the split delimiter to a single space and the glue delimiter to an empty string.

Finally I'd like to give credits to the guys over at phpjs.org. Thanks to them I saved a lot of headscratching.

Back to the top