Skip to main content
Tool Factory
  • English
  • Español · Review pending
  • Français · Review pending
  • Deutsch · Review pending
  • Português · Review pending
  • 日本語 · Review pending
  • 简体中文 · Review pending

Encoding & Number Bases

Decimal, Hex, Binary and Octal Converter

Convert decimal to hex, hex to decimal, binary, or octal. Preserve large integer precision and convert signed numbers directly in your browser.

Tool workspace

Ready

Your input stays in this browser.

The tool is ready to run.

Run the tool when your input is ready.

Input

Add your source and choose the required options.

Ready for a result

Run the tool to create the result.

Direct answer

What Decimal, Hex, Binary and Octal Converter does

A number base converter changes the notation of an integer while keeping its value. Choose bases 2, 8, 10, or 16 to convert binary, octal, decimal, or hexadecimal. Exact integer arithmetic preserves large values.

Output

What you receive

You receive the same integer written in the selected output base, with uppercase hexadecimal digits and an explicit minus sign when negative.

Use this tool

How to convert decimal, hexadecimal, binary, and octal

  1. Enter an integer without 0x, 0b, or 0o prefixes.
  2. Select the input base and output base.
  3. Select Convert and copy the result.
  4. Reverse the bases to check the conversion.

Processing

Calculate privately in your browser

This utility processes values locally. It does not send your input to a conversion service.

Worked example

Test Decimal, Hex, Binary and Octal Converter with a safe sample

Input: 255

Settings: Decimal (10) to Hexadecimal (16)

Expected result

FF

The same value in binary is 11111111 and in octal is 377.

Limits

Check before you use the result

  • The input must contain at most 512 valid digits, with an optional minus sign.
  • Fractions, exponent notation, base prefixes, and separators are not supported.
  • Negative results use a minus sign, not fixed-width two's complement.
  • This utility converts numbers, not encoded text or RGB colors.

Topics

Explore connected categories

Encoding & Number Bases, Numbers, Units & Calculators