# How I convert number bases without doing binary by hand

A beginner-friendly guide to binary, decimal, octal, hexadecimal, and checking number conversions.

- Date: 2026-09-27
- URL: https://ilham.dev/posts/how-to-convert-number-bases-without-doing-binary-by-hand/
- Markdown: https://ilham.dev/posts/how-to-convert-number-bases-without-doing-binary-by-hand/index.md
- Tags: numbers, binary, hex, tools
- Reading time: 2 min


Base conversion helps when working with binary flags, hex colours, low-level values, or documentation that uses different number systems.

I use [Number Base Converter](/tools/base-converter/) for the quick version of this task, then I review the output before relying on it.

## The simple idea

Base conversion helps when working with binary flags, hex colours, low-level values, or documentation that uses different number systems.

The tool is a shortcut for the mechanical work. It does not remove the need to understand what the result means.

## Step 1: Enter the source number

Enter the source number.

## Step 2: Choose the source base

Choose the source base.

## Step 3: Read decimal, binary, octal, and hexadecimal outputs

Read decimal, binary, octal, and hexadecimal outputs.

## Step 4: Check prefixes like 0x for hex only when the target context expects them

Check prefixes like 0x for hex only when the target context expects them.

## Step 5: Avoid converting fractional values unless the tool supports them explicitly

Avoid converting fractional values unless the tool supports them explicitly.

## Step 6: Use grouping to make long binary values readable

Use grouping to make long binary values readable.

## Step 7: Verify important constants in a second source before shipping code

Verify important constants in a second source before shipping code.

## My checklist

Before I trust the result, I check:

- Enter the source number.
- Choose the source base.
- Read decimal, binary, octal, and hexadecimal outputs.
- Check prefixes like 0x for hex only when the target context expects them.
- Avoid converting fractional values unless the tool supports them explicitly.
- Use grouping to make long binary values readable.
- Verify important constants in a second source before shipping code.

That review step is what keeps a quick tool from becoming a quick mistake.
