Skip to content
ConvertMyStuff
Tool

Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal bases.

Developer Tools

What this tool does

Convert integers between base 2, 8, 10, and 16 with optional 0x/0b prefixes on output.

How to use

  1. Enter a number.
  2. Choose from and to bases.
  3. Copy the converted result.

Examples

255 decimal to hex

Input: 255

Output: 0xFF

255 in base 10 equals FF in hexadecimal.

Common use cases

  • Debug hex memory addresses
  • Convert binary flags to decimal
  • Translate color hex values

FAQ

Can I use 0x or 0b prefixes?

Yes. Prefixes are recognized on input and added on output when helpful.

Does this support negative numbers?

This version focuses on non-negative integer conversion.

Browse all tools →

Last reviewed: 2026-05-23