Base Converter
Convert numbers between binary, octal, decimal, hexadecimal and other bases.
Enter a number in any base from 2 to 36 and see its equivalent in every other base. Useful when you're juggling hex colour codes, binary bit flags, octal file permissions, and decimal arithmetic in the same problem.
Common use cases: translating a colour from #A1B2C3 to RGB integer values, converting a permission bitmask to chmod notation, inspecting a hex memory address as binary to read individual flag bits, and double-checking boundary values when writing low-level code.
Frequently asked questions
Why does hexadecimal use letters A–F?
FF is 255, 10 in hex is 16.When would I actually use binary or octal in real code?
0b1010) are handy for bit-flag constants where each bit has a meaning. Octal mostly survives in Unix file permissions (chmod 755). Hex is everywhere — colour codes, memory addresses, RGB values, hash digests.How do I convert in my head between hex and binary?
F = 1111, A = 1010. So 0xFA = 1111 1010. That's why hex is the universal shorthand for binary — much easier to read than the same value spelled out in bits.What about negative numbers?
Other Converters
View all tools →Image to Base64
Convert images to Base64 encoded strings
Roman Numeral Converter
Convert between numbers and Roman numerals
Temperature Converter
Convert between Celsius, Fahrenheit, and Kelvin
Color Converter
Convert colors between HEX, RGB, HSL, and more formats
JSON to TypeScript
Convert JSON to TypeScript type definitions
JSON to Rust
Convert JSON to Rust struct definitions
CSS Unit Converter
Convert between CSS units (px, em, rem, %, pt)
Text Case Converter
Convert text between different cases (camelCase, snake_case, etc.)
Unix Time Converter
Convert between Unix timestamps and readable dates
Timezone Converter
Convert times between timezones worldwide for meetings and global coordination
JSON to CSV
Convert JSON arrays to CSV format for spreadsheets and data export
CSV to JSON
Convert CSV data to JSON format for APIs and applications