Integer base converter — Guide

Convert a number between different bases (decimal, hexadecimal, binary, octal, base64, ...)

What it is and when to use it

Convert an integer between decimal, hexadecimal, binary, octal, base64 and more — paste once, see every base at once. Indispensable when reading flags and masks (0x1F), permission bits, colour channels or wire protocols where the same number keeps changing costume.

Converts the same number between decimal, hexadecimal, binary, octal and even base64 — useful when debugging bitwise logic and protocol fields.

How to use it

  1. Enter the number in any of the base fields
  2. The other bases update automatically
  3. Copy the result you need from its field

A worked example

Fill in a sample number

255

Copy this into the tool, or open Integer base converter

Things that trip people up

  • This converts numbers, not text. To convert text, use "Text to ASCII Binary" instead

Questions people ask

Why do programmers keep switching bases?
Because each base answers a different question: hex maps 1:1 to 4 bits (flags, memory addresses), binary shows individual bits, octal survives in Unix permissions. The number never changes — only the view.
How does base64 fit in here if it is not a number base?
Base64 encodes bytes as text; when your input is a small integer, its byte pattern can be shown as base64 characters. For full text-to-base64 you want the dedicated Base64 tools — this one is for numbers.
Are negative numbers and decimals supported?
The converter targets integers. Negative and fractional values behave differently in each base and encoding, so use the math evaluator or a language runtime when those matter.

Next steps

Open the Integer base converter tool

Spotted something wrong on this page? Tell us via Contact Us