Skip to tool

C++ Hexadecimal to decimal Online

Convert hexadecimal input to decimal text.

The output updates as you type. The tool processes input in your browser.

Worked example

This tool returns an exact decimal integer from base-16 digits, including large values.

Sample input
ff
Sample output
255

Using this operation in C++

The interactive result uses JavaScript. std::string operates on char elements. With UTF-8 data, byte offsets and decoded character positions can differ.

C++ reference