CacheHackCacheHack

Hexadecimal Converter

Convert between text and hexadecimal (base-16). Each character is represented as 2 hex digits based on its ASCII value.

Enter hexadecimal values

Format: 2 hex digits per character (00-FF). Spaces, colons, or no separators accepted.

Example: "A" = 41, "Hello" = 48 65 6C 6C 6F

ASCII Reference

A
41
Z
5A
a
61
z
7A
0
30
9
39
20
.
2E

What is Hexadecimal?

Hexadecimal (or "hex") is a base-16 number system that uses digits 0-9 and letters A-F to represent values. Each hex digit represents 4 bits, making it a compact way to express binary data. Hex is widely used in computing for memory addresses, color codes, and data representation.

In text encoding, each ASCII character is represented by 2 hex digits ranging from 00 to FF (0-255 in decimal). For example, the letter "A" has ASCII value 65, which is 41 in hexadecimal.

How Hex Encoding Works

Converting text to hexadecimal follows a simple process:

  1. Take each character in the text
  2. Find its ASCII (or Unicode) value
  3. Convert that number to base-16 (hexadecimal)
  4. Pad to 2 digits if needed (e.g., 9 becomes 09)

Decoding reverses this: parse pairs of hex digits, convert to decimal, then to the corresponding character.

Hexadecimal in Geocaching

Geocachers encounter hex encoding in various puzzle caches:

Common Puzzle Types

  • Encoded coordinates: GPS coordinates hidden in hex format
  • Multi-stage clues: Field puzzle answers encoded in hex
  • QR codes: Often contain hex-encoded data
  • Tech-themed caches: Computer science puzzles using hex

Recognizing Hex

Hexadecimal text is easy to identify:

  • Contains only characters 0-9 and A-F (case insensitive)
  • Often grouped in pairs: "48 65 6C 6C 6F"
  • May use colons or no separators: "48:65:6C:6C:6F" or "48656C6C6F"
  • Printable ASCII text typically starts with digits 2-7

Hex Digit Values

Hexadecimal uses 16 symbols:

  • 0-9: Same as decimal (0 through 9)
  • A: 10 in decimal
  • B: 11 in decimal
  • C: 12 in decimal
  • D: 13 in decimal
  • E: 14 in decimal
  • F: 15 in decimal

Common ASCII Values in Hex

Useful hex values to recognize:

  • 20: Space character
  • 30-39: Digits 0-9
  • 41-5A: Uppercase letters A-Z
  • 61-7A: Lowercase letters a-z
  • 2E: Period (.)
  • 2C: Comma (,)
  • 4E: Letter N (common in coordinates)
  • 57: Letter W (common in coordinates)

Hex vs Other Encodings

Comparing hexadecimal to related formats:

  • Binary: Base-2, longer but shows individual bits
  • Decimal: Base-10, familiar but less compact for data
  • Base64: More efficient for large data, but less readable
  • Octal: Base-8, historically used in computing

Converting Manually

To convert hex to decimal manually:

  1. Take the first digit and multiply by 16
  2. Add the second digit value
  3. Example: 4A = (4 × 16) + 10 = 64 + 10 = 74 (letter "J")

Tips for Hex Puzzles

  • Look for patterns: Coordinate pairs often start with 4E (N) or 53 (S) for latitude
  • Check spacing: Try different groupings if decoding fails
  • Case doesn't matter: "4a" and "4A" are the same value
  • Validate output: If you get garbage, try encoding instead of decoding

Related Encoding Tools

  • Binary Converter: Convert between text and binary representation.
  • Base64 Encoder: Encode data in Base64 format.
  • Number Base Converter: Convert numbers between any bases (2-36).
  • A1Z26 Cipher: Simple letter-to-number encoding.