Chuck Norris unary code
Encode text into the joke Chuck Norris unary esolang, and decode it back.
Chuck Norris unary code
Chuck Norris is a joke esoteric programming language that writes every bit of a byte stream as a single word: "Chuck" for a 0 bit and "Norris" for a 1 bit. This tool encodes plain text (or raw hex and decimal byte values) into that unary code, and decodes it straight back, so you can experiment with the format or just enjoy how absurdly long a short sentence becomes.
Set Direction to Encode or Decode — the two share one panel, and swapping the direction copies the current output back into the input for an instant round trip. Input format and Output format each choose between Text, Hex and Bytes, so you can feed the tool raw hex or a decimal byte list instead of ordinary text. Wrap lines at breaks long output into readable chunks without ever splitting a "Chuck" or "Norris" word in half, and Keep padding decides whether a leftover partial byte is padded out with zero bits or dropped — whether that's an odd hex digit while encoding or a code that doesn't land on a whole number of bytes while decoding.
The encoder validates its input precisely: an out-of-range byte value, a non-hex character, or a decoded word that is neither "Chuck" nor "Norris" all produce a clear error naming exactly what and where, rather than a garbled result. CRLF and LF encode as the distinct bytes they are, and diacritics and emoji round-trip correctly through UTF-8.
Everything runs locally in your browser — nothing you type or paste is ever uploaded anywhere. Copy the result, download it as a .txt file, or send the output straight back into the input to decode what you just encoded.