Number Base Converter
Convert numbers between decimal, hexadecimal, octal, and binary instantly in your browser. Handy for debugging bitmasks, color hex codes, and chmod permissions.
Last updated:
How to Use Number Base Converter
- 1Enter a number in the input field and select its current base (decimal, hex, octal, or binary).
- 2See the equivalent values in all other bases update instantly.
- 3Use the "Swap" button to quickly change the input base.
- 4Click "Copy" next to any result to copy it to your clipboard.
Frequently Asked Questions
What is hexadecimal?
Hexadecimal (base 16) uses digits 0-9 and letters A-F to represent values. It is widely used in programming for memory addresses, color codes, and byte values because each hex digit maps neatly to four binary bits.
How does binary work?
Binary (base 2) uses only the digits 0 and 1. Each position represents a power of 2, so the binary number 1010 equals 8 + 0 + 2 + 0 = 10 in decimal. Computers operate in binary at the hardware level.
What are common number bases in programming?
Decimal (base 10) is used for general arithmetic. Binary (base 2) represents raw machine data. Octal (base 8) appears in Unix file permissions. Hexadecimal (base 16) is used for colors, memory addresses, and compact binary representation.
Is my data sent to a server?
No. All number conversions are performed entirely in your browser. No data is sent to any server.
Related Tools
Unix Timestamp Converter
Convert Unix timestamps to human-readable dates and back. Handles seconds, milliseconds, UTC, local time zones, ISO 8601, and relative times — fast and offline.
Color Converter
Convert colors between HEX, RGB, HSL, HSV, and OKLCH online. Live preview, named CSS colors, WCAG contrast check, and instant copy in any format — no signup.
Text Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, UPPER, lower, Title and Sentence case.
YAML ↔ JSON Converter
Convert YAML to JSON and JSON to YAML in your browser. Bidirectional conversion preserves nested structure, anchors, and types — for Kubernetes manifests and CI configs.