AskLearn
Loading...

Number Base Conversion

Valid characters for Decimal (Base 10): 0-9
Example: 255

How to Use

Number Bases

  • Binary (Base 2): Uses digits 0-1
  • Octal (Base 8): Uses digits 0-7
  • Decimal (Base 10): Uses digits 0-9
  • Hexadecimal (Base 16): Uses 0-9, A-F
  • Base 32: Uses A-Z, 2-7
  • Base 64: Uses A-Z, a-z, 0-9, +, /

Common Prefixes

  • 0b: Binary (e.g., 0b1010)
  • 0o: Octal (e.g., 0o12)
  • 0x: Hexadecimal (e.g., 0xA)

Use Cases

  • Programming: Convert between number systems
  • Computer Science: Understand data representation
  • Networking: IP addresses, subnet masks
  • Cryptography: Hash values, encoding

Tips

  • Binary Grouping: Binary shown in 4-bit groups (nibbles)
  • Click to Copy: Click any result to copy to clipboard
  • Validation: Invalid characters for base are rejected
  • Powers of Two: Special significance in computing

Examples

  • 255 (decimal): 11111111 (binary), FF (hex)
  • 1024 (decimal): 10000000000 (binary), 400 (hex)
  • 42 (decimal): 101010 (binary), 2A (hex)