Skip to content
100% local

PLANET barcode generator

Encode a number into a USPS PLANET postal barcode, or decode one back to a number.

Output

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.

FAQ

What numbers can PLANET encode?
An 11-digit delivery-point ZIP code (5 + 4 + 2 digits) or a 13-digit one, plus a check digit the tool computes for you. Turn on "Keep zero padding" to encode a shorter number by zero-padding it automatically.
Why does the barcode look like a string of 1s and 0s?
This tool has no printer, so the pattern is written as text: 1 is a full-height bar and 0 is a half-height bar. Switch the output format to hex or bytes to get the same pattern packed differently.
What does the checksum tell me when decoding?
PLANET's last digit is a check digit chosen so the full digit sum divides evenly by 10. Decoding recomputes it and reports a mismatch, which usually means a character was mistyped or the pattern is corrupted.
Is this the same as a POSTNET barcode?
They're closely related two-of-five codes for the same data, but PLANET's tall and short bars are swapped relative to POSTNET's — this tool implements PLANET only.
Is my data uploaded anywhere?
No. Encoding and decoding run entirely in your browser — nothing you type is sent to a server.