Free engineering calculators and unit convertersceo@instrumentationblog.in
Other Converters · Free Online Tool

Number System (Binary, Hex, Octal) Converter

Type in any box to convert instantly between binary, octal, decimal, hexadecimal and any base from 2 to 36. Includes 16 bit and 32 bit register views for PLC and Modbus troubleshooting.

BinaryOctalDecimalHexBase 2 to 36
Advertisement

How Number System Conversion Works

Number systems represent the same value with different bases. PLCs, Modbus registers and digital electronics use binary (base 2), octal (base 8) and hexadecimal (base 16) alongside everyday decimal.

Each digit in a number has a weight equal to the base raised to its position. To convert into decimal, multiply each digit by its weight and add the results. To convert out of decimal, divide repeatedly by the new base and collect the remainders.

Value = dₙ × baseⁿ + … + d₁ × base¹ + d₀ × base⁰
Worked example: binary 1011 0110 = 128 + 32 + 16 + 4 + 2 = 182 decimal = B6 hex = 266 octal.

Quick reference: 0 to 15

DecimalBinaryOctalHex
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F
Advertisement

Frequently Asked Questions

How do I convert decimal to binary?

Divide the number by 2 repeatedly and write down the remainders, then read them from bottom to top. For example 13 gives remainders 1, 0, 1, 1, so 13 in binary is 1101.

How do I convert hexadecimal to decimal?

Multiply each hex digit by 16 raised to its position (starting at 0 from the right) and add them. For example 0x1F = 1 × 16 + 15 = 31.

Why do PLCs and Modbus use hexadecimal?

Each hex digit represents exactly four bits, so a 16 bit register fits in four hex digits. This makes status words, bit masks and register addresses much easier to read than long binary strings.

What is a signed 16 bit value?

A signed 16 bit integer uses two’s complement, so values from 0x8000 to 0xFFFF represent negative numbers from −32768 to −1. This tool shows both unsigned and signed readings for register values up to 65535.

Does this converter handle very large numbers?

Yes. It uses arbitrary precision integer maths, so you can convert values far larger than 32 or 64 bits without rounding errors.

You May Also Like

Learn the theory behind it

SCADA communication protocols

A practical, field focused guide on instrumentationblog.in that explains where these units come from and how engineers use them on real plants.

Read Full Article

More Other Converters

Popular Engineering Converters

Frequently used tools from our full library of 76 unit converters.

Browse all unit converters →