A barcode is not a universal container for whatever text you throw at it. This becomes obvious the first time someone pastes X001ABCDE9 into a UPC-A form and wonders why the form looks unhappy.
UPC-A encodes digits. An Amazon FNSKU contains letters. That is not a formatting preference; it rules out UPC-A and EAN-13 completely.
Three codes that look like they should be interchangeable
X001ABCDE9 Amazon FNSKU B08N5WRWNW ASIN 036000291452 UPC-A The first is an FNSKU: a 10-character identifier assigned by Amazon to one seller's offer of one product. The second is an ASIN, the catalog identifier. The third is the manufacturer’s retail barcode. The X00 barcode guide explains why a code beginning with B0 in the FNSKU column usually means the listing is tracked by its manufacturer barcode rather than an Amazon barcode.
For the label itself, FNSKU is drawn as Code 128. Code 128 can encode capital letters and digits, so X001ABCDE9 is perfectly legal there. UPC-A would reject it before any layout discussion starts.
The other thing people get wrong: Code 128 subsets
Code 128 is not one undifferentiated spray of bars. It has subsets A, B and C. Subset B is the practical choice for an FNSKU because it handles ordinary ASCII letters and digits without the compression rules of subset C.
Our encoder starts with Code 128B (104), then computes its checksum:
const codes = [104]; // Start B let sum = 104; [...text].forEach((ch, i) => { const value = ch.charCodeAt(0) - 32; codes.push(value); sum += value * (i + 1); }); codes.push(sum % 103); The final symbol includes the checksum and stop pattern. This is not a checksum you print under the bars; the human-readable text underneath is still the original 10-character FNSKU.
The label has four jobs, not one
A barcode alone is not an FBA item label. Amazon’s item-label specification calls for the Code 128 symbol, the FNSKU text, a product title and the raw condition such as New. The Amazon FBA barcode requirements guide also covers the quiet zones and why the old manufacturer barcode must be covered.
The Amazon FNSKU label generator formats those fields together rather than treating the FNSKU as a UPC with a cool prefix.
If your input starts with X00 or a valid B0 ASIN-shaped code, do not force it through a numeric retail pipeline. Give it the symbology that can actually carry it.
