๐ 17 October 2026 ยท โฑ 8 min read ยท โ๏ธ Grounded Studio
When you tap SHARE in the Circuit Trace editor, you get back something like this:
CT-D04B5-2Y9G0-C2EGT-V0000-00000-0000B
Thirty characters after the CT- prefix, in six blocks of five. That is a complete puzzle: grid size, every colour pair, every diode and a checksum. Here's how we got there โ and why we didn't just stuff a URL into the share sheet.
The obvious first instinct is to share a link: circuittrace.app/puzzle?data=.... That works, but it has three annoying failure modes:
We wanted a code you could say out loud over the phone if you had to. A code someone could type by hand from a screenshot. A code that would survive copy-paste through five different apps.
A Circuit Trace puzzle is a surprisingly small amount of data:
Total: exactly 150 bits.
150 bits รท 5 bits per character = exactly 30 characters. The alphabet matters as much as the length.
Standard Base64 uses A-Z a-z 0-9 + /. Terrible for sharing by voice ("capital B? or lowercase?"), terrible for OCR ("is that a lowercase L or a 1?"), and the + and / characters break in URLs anyway.
We use Crockford Base32 instead. Douglas Crockford's variant is 32 characters chosen specifically to be unambiguous when humans copy them:
I, L, O, and U entirely โ removes every character that looks like a digitI and L as 1, and O as 0 โ forgiving if someone mistypesNet effect: a human can read a code over the phone and the person on the other end types it correctly on the first try.
Every normal puzzle code has the same length. Unused pair and diode slots are filled with zeros, which is why a code for a small puzzle ends in a run of 0s, like the one above. A fixed length makes a code easy to check at a glance: if a block is missing, you can see it.
Bigger puzzles don't fit in 150 bits: more than five pairs, portals, stars or checkpoints. Those get a second format that only stores what the puzzle uses, so its length depends on the puzzle. The app tells the two apart by length: a normal code is always exactly 30 characters. Every puzzle that fits the original format keeps it, so older versions of the app can still play it. We then insert dashes every 5 characters for readability. Dashes are stripped during decoding; they're purely for human eyes.
Every code starts with CT-. Not just branding โ it's the format marker. If someone copies a Base32 string from somewhere else, the editor can tell immediately it's not a Circuit Trace code and show a helpful error ("that doesn't look like a Circuit Trace puzzle") instead of garbling a decode attempt.
The prefix also lets us scan for codes in the clipboard: when you open the editor's "PLAY SHARED CODE" screen, we peek at the clipboard, and if it starts with CT-, we offer to paste it automatically. One less tap.
The last character of a normal code is a 4-bit checksum: the 5-bit groups before it, added up. If a character gets mangled during paste, the sum almost always stops matching, and the app shows an error instead of a broken puzzle. The longer format for big puzzles uses a stronger 8-bit checksum.
We don't need cryptographic integrity (nobody's attacking a puzzle code). We just need "did a character get mangled during paste." A simple sum does that for essentially zero cost.
Zero of this is visible from the outside. The player taps SHARE, pastes a code to a friend, and the friend taps it to play. That one code is the entire user experience.
But every one of those design decisions โ Crockford Base32, the fixed length, the CT- prefix, the checksum, the 5-char dash grouping โ exists because someone, somewhere, is going to copy that code wrong, or auto-correct it, or dictate it over FaceTime, or screenshot it and OCR it. The point of the format is to not break in any of those cases.
Boring engineering. Visible as the absence of problems.
If you want to see share codes in action โ install Circuit Trace, open the Puzzle Editor, and build something.