PLANET barcode generator
Encode a number into a USPS PLANET postal barcode, or decode one back to a number.
PLANET barcode generator
PLANET (Postal Alpha Numeric Encoding Technique) is the USPS barcode used on outgoing mail for delivery confirmation services. This tool encodes an 11- or 13-digit number — a ZIP code, ZIP+4 or a full delivery-point code — into its PLANET bar pattern, and decodes a bar pattern back into the original number. Since there is no printer or scanner involved, the pattern is written as plain text: "1" for a full-height bar and "0" for a half-height bar, bracketed by a full-height guard bar at each end.
Pick a direction with "Encode number → barcode" or "Decode barcode → number", then type the value into the field. Input format and output format control how that value is read and written: as plain text, as hex bytes, or as a decimal byte list — useful when a number arrives already packed one of those ways. "Keep zero padding" pads a short number up to 11 digits (and a longer one up to 13) rather than rejecting it, and keeps leading zeros on a decoded number; turn it off to require an exact 11 or 13 digits, or to trim leading zeros from the result. "Wrap output at" breaks a long bar pattern into fixed-width lines so it is easier to read.
PLANET always encodes exactly 11 or 13 source digits plus a trailing check digit, so the total digit count is always even — 12 or 14 — chosen so the full digit sum is a multiple of 10. Decoding checks that automatically and reports whether the check digit matches, which catches a mistyped or corrupted pattern even when every character is otherwise valid.
Everything runs locally in your browser — the number and the barcode never leave your device, so it is safe to use with real addresses. Copy the result, download it as a .txt file, or send it straight back into the input to decode what you just encoded.