Number Base Converter
Convert numbers between decimal, hexadecimal, octal and binary online.
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 dates and back. UTC and local time support.
Color Converter
Convert colors between HEX, RGB, and HSL formats online.
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 online. Instant bidirectional conversion.