Classic Mac OS · hqx · fork-preserving

BinHex converter

Classic Mac OS encoding that bundled binary files with resource forks into 7-bit ASCII for transfer over text-only channels. Uses RLE compression and a base64-like encoding. Produces .hqx files.

0 chars
encodes to
or decode
0 chars

How to use this tool

  1. Type or paste text or bytes into the Text / Bytes → BinHex (hex-only representation) box — the encoded output appears instantly in BinHex (hexified).
  2. The output starts with the (This file must be converted with BinHex 4.0) header line, then a : separator before the encoded data.
  3. Hit Copy result to copy the full .hqx-style string to your clipboard.
  4. To decode, paste a BinHex 4.0 string into the BinHex → Text box — it must contain the : separator — and the decoded text appears below it.
  5. Use Clear any time to reset a box and start over.

Why this tool is helpful

Read classic .hqx archives

Open and decode the BinHex 4.0 files that were everywhere in the classic Mac OS download era, without an old Mac or a vintage utility.

Recover legacy Mac data

BinHex was designed to bundle a file's data and resource forks together, so nothing was lost in transfer. Paste an old stream here to recover its text content.

Move binary through text-only channels

The encoding produces 7-bit ASCII, making binary data safe to send over email, newsgroups, and other channels that mangle raw bytes.

Inspect BinHex streams

See the exact header line, the : separator, and the 64-character alphabet that make up a real BinHex 4.0 stream.

Learn a retro encoding

Trace how a base64-like encoding with a custom alphabet turns arbitrary bytes into printable characters — a common pattern across many formats.

Stay private

Everything runs in your browser. Nothing is uploaded, logged, or sent to a server — safe for sensitive payloads and legacy data.

FAQ

What is BinHex 4.0?

BinHex (short for "binary to hexadecimal") is a classic Mac OS format for turning binary files into 7-bit ASCII so they could travel over text-only channels. BinHex 4.0 added a header line and a base64-like encoding to the earlier hex-based versions, producing .hqx files.

What does the header line mean?

The encoded output always begins with (This file must be converted with BinHex 4.0), followed by a : that marks where the encoded data starts. The decoder uses that : to find the payload.

Why do I get "No colon separator found"?

Decoding needs the : that separates the header from the data. Make sure you paste the complete encoded output — including the header line and the colon — rather than just the trailing characters.

Is BinHex the same as hex or base64?

No. Despite the name, BinHex 4.0 doesn't use 0–9/A–F hex digits. It encodes bytes with a 64-character alphabet (a base64-like scheme), so the output uses letters, digits, and symbols like !, #, and `.

Does this tool preserve resource forks?

The classic BinHex format was built to bundle a file's data and resource forks together. This tool gives you a BinHex 4.0 representation of the text or bytes you feed it, so you can read and recover the payload from a classic .hqx stream.

Is encoding the same as encryption?

No. BinHex is fully reversible and offers no security — anyone can decode it. It's a different representation of the same bytes, not a way to hide data.

Does any of my data leave my browser?

Never. All conversion happens locally in JavaScript. Your input is not sent to, stored on, or logged by any server.