Number Base Converter

Base converter (Decimal ↔ Binary ↔ Hex ↔ Octal), large number breakdown (Thousand, Lakh, Million, Crore, Billion, Trillion…) and number-to-words.

No data leaves your browser
Type in any field — others update live
DecimalBase 10
BinaryBase 2
HexadecimalBase 16
OctalBase 8
From Count
DecimalBinaryHexadecimalOctal
Enter any number
NumberInteger or decimal

How to use the Number Base Converter

  1. Enter a number in binary, octal, decimal or hex.
  2. See it in every other base instantly.
  3. Use the large-number tab for millions, billions and trillions.

Why use this Number Base Converter

  • Binary, octal, decimal and hexadecimal conversion
  • Large number names (M, B, T and beyond)
  • Conversion table

Frequently Asked Questions

Is this number converter free?

Yes, completely free with no signup required.

What bases are supported?

Decimal (base 10), binary (base 2), hexadecimal (base 16), and octal (base 8), plus a large number calculator.

How does the live conversion work?

Type a number in any field and all other base representations update instantly without clicking a button.

How do I convert decimal to binary?

Enter your decimal number in the Decimal field and the Binary field updates instantly. For example, 255 in decimal is 11111111 in binary.

How do I convert binary to decimal?

Type your binary number (only 0s and 1s) in the Binary field. The Decimal field will show its decimal equivalent. For example, 1010 in binary is 10 in decimal.

How do I convert decimal to hexadecimal?

Enter your decimal number in the Decimal field and the Hex field updates immediately. For example, 255 in decimal is FF in hex.

What is hexadecimal used for?

Hexadecimal is used in programming for memory addresses, color codes (#FF5733), byte-level data, and reading binary output in a compact form. Each hex digit represents exactly 4 binary bits.

What is octal notation?

Octal is base 8, using digits 0-7. It was historically used in Unix file permissions (e.g. chmod 755) and some older systems. Each octal digit represents exactly 3 binary bits.

How do I read a hex color code?

A hex color like #FF8800 is three hex pairs: FF = red (255), 88 = green (136), 00 = blue (0). Enter each pair as a decimal to convert: FF → 255, 88 → 136, 00 → 0.

What are the common number bases in programming?

Binary (base 2) for bitwise operations, octal (base 8) for Unix permissions, decimal (base 10) for general arithmetic, and hexadecimal (base 16) for memory addresses and color codes.

More Developer Tools

JSON ToolsFormat, validate, minify & compare JSON JSON FormatterPretty-print and beautify JSON CSV Viewer & EditorView, edit and convert CSV files YAML ConverterConvert YAML to JSON and back Regex TesterTest regular expressions live Text DiffCompare two texts side by side JWT ToolDecode, encode, compare and verify JWTs JWT DecoderInspect JWT header and payload XML FormatterFormat, validate and convert XML URL EncoderEncode, decode and parse URLs Base64Encode and decode Base64 strings Hash GeneratorSHA-256, MD5, HMAC and CRC32 SHA-256Generate SHA-256 checksums MD5 GeneratorGenerate MD5 hash values Text ToolsCase convert, count and transform text Number ConverterBinary, hex and octal converter Token CalculatorEstimate LLM token counts from text PDF EditorEdit text, sign and annotate PDFs Schema GeneratorJSON to TypeScript, Go, Rust, Python IndexNowSubmit URLs to Bing, Yandex & more PII RedactorMask personal data & keys before AI Timestamp ConverterUnix epoch to date and back UUID GeneratorUUID v4/v7, ULID, Nano ID Password GeneratorSecure passwords & passphrases MCP Config BuilderConfigs for Claude, Cursor, VS Code AGENTS.md GeneratorCLAUDE.md, Cursor rules, Copilot AI Crawler Controlsrobots.txt for AI bots & llms.txt Cron ParserExplain crontab, next run times SQL FormatterBeautify & minify SQL queries cURL ConvertercURL to fetch, Python, Go, PHP Chat Export ConverterChatGPT/Claude export to Markdown Markdown PreviewLive GFM preview & to HTML Color & ContrastHEX/RGB/OKLCH, WCAG checker QR Code GeneratorURL, Wi-Fi, vCard; PNG & SVG Image EditorConvert, compress, resize & crop Tool Schema ConverterOpenAI ↔ Anthropic ↔ Gemini ↔ MCP JSONL ValidatorFine-tuning & batch files SSE Stream ParserReassemble LLM streaming responses Prompt Template & DiffFill {{vars}}, compare versions