# SKU generator: free, with variants and CSV | MyRecords

> Build short, consistent SKU codes from category, product, colour and size. Pick the rules, get one code per variant, then copy them or download a CSV.

Canonical: https://myrecords.cloud/resources/free-tools/sku-generator/
Last updated: 2026-12-04

Free tool · Inventory

**SKU generator**

One short, steady stock code for every product and variant, built by rules you choose.

-   Works for any country
-   No sign-up
-   Runs in your browser
-   Facts verified 4 Dec 2026

An estimate to help you plan. Nothing you type is uploaded.

 Formula and worked example

In short

An SKU (stock keeping unit) is your own internal code for one product you stock: each size, colour or pack gets its own. Build it from short parts in a fixed order, such as category, product, colour, size and a serial: Apparel, Crew neck T-shirt, Navy blue, M becomes APR-CRW-NVY-M-001. Keep it short, with no spaces, never starting with 0, and with no part that can change, such as price or shelf. An SKU is yours to make up; a GTIN (the number under an EAN or UPC barcode) is a global number you get through GS1.

Also called: SKU code generator, SKU number generator, SKU builder, Product code generator, Item code generator.

## How it is built

-   **Clean:** accents are stripped and anything that is not a letter or digit is dropped, so “T-shirt” reads as “Tshirt” and spaces never reach the code.
-   **Short values stay:** a value no longer than the letters per part (a size like M or 42) is kept as typed.
-   **Drop vowels:** the first letter, then the consonants and digits in order, with a repeated letter counted once. Apparel → APR, Maroon → MRN, Cotton → CTN. A word with too few consonants (Aqua) is filled up with the skipped letters: AQU.
-   **First letters:** the first letters of the value: Apparel → APP.
-   **Initials:** the first letter of each word, then more letters of the last word if needed: Navy blue → NBL.
-   **Look-alikes:** with the box ticked, O and I are left out of letter parts (and l too when upper case is off). The Built from column says when that changed a part.
-   **Serial:** the start number plus the row, zero-padded to the digits you pick: 1 with 3 digits is 001.
-   **Checks:** the tool warns when a code starts with 0, is only digits, is longer than 20 characters, or is the same as an earlier row.

**The common mistake:** building codes by hand, one person at a time. Two people shorten “Maroon” as MAR and MRN, and the same shirt ends up with two codes. Write the rule down once (this tool’s settings are a good start) and use it for every new item.

## Worked example

Kaveri Garments, Visakhapatnam, adds a crew neck T-shirt in two colours and two sizes. It codes by category, product, colour, size and a 3-digit serial, dropping vowels, 3 letters per part, with hyphens.

| Part | Value | Rule | Code |
| --- | --- | --- | --- |
| Category | Apparel | vowels dropped | APR |
| Product | Crew neck T-shirt | vowels dropped | CRW |
| Colour | Navy blue | vowels dropped | NVY |
| Size | M | kept as typed | M |
| Serial | 1 | 3 digits | 001 |
| SKU |  |  | APR-CRW-NVY-M-001 |

The other three variants follow the same rule: APR-CRW-NVY-L-002, APR-CRW-MRN-M-003 and **APR-CRW-MRN-L-004**. Each code is 17 characters, with no spaces, and none starts with 0.

The same rule works anywhere. Nordlicht Tools GmbH, Munich, codes a cordless drill as category Tools, product Drill, size 18V: TLS-DRL-18V-001.

## Good practice

-   **One SKU per sellable variant:** every size, colour and pack you count separately.
-   **Short and fixed:** 8 to 15 characters, the same parts in the same order, no spaces.
-   **Meaning that does not change:** category, product, colour and size, never price, supplier or shelf.
-   **Never start with 0,** and avoid O and I next to digits.
-   **Never reuse a code** for a different product, even after the old one is sold out: old invoices and reports still point to it.

## SKU or GTIN

An SKU is internal: you make it up and it only needs to be unique in your own books. A GTIN is the number under an EAN-13 or UPC-A barcode: the brand owner gets a company prefix through GS1 and numbers its products from it, so the product carries the same number in every shop and marketplace. Many shops keep both on an item: the GTIN that is printed on the pack, and their own SKU. To print either as a barcode, use the [barcode and QR generator](https://myrecords.cloud/resources/free-tools/barcode-qr-generator/).

## In MyRecords

[Inventory](https://myrecords.cloud/product/inventory/) in MyRecords gives every item its own item code, with its name, group, unit, prices and barcodes, so a scan at the till or in the warehouse finds the right item, and the point of sale searches by name, code or barcode. To add a range, Make item variants takes a template item and the attribute values you pick, with a code part for each new value, and lists one row per combination with its code, name, selling rate, barcode and opening stock; rows that already exist are skipped, and labels for the new items can be printed straight after. Items can also track batches, serial numbers or both.

## Official sources

Checked 4 Dec 2026

1.  [Wikipedia, Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit) read 4 Dec 2026: an SKU marks a distinct item by attributes such as maker, size, colour and pack; SKUs follow no standard, and a business may keep a supplier's code or make its own
2.  [Wikipedia, Global Trade Item Number](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) read 4 Dec 2026: a GTIN is a standard product number created by GS1; a company joins GS1 for a company prefix and adds its own item numbers. No law sets how an SKU is built: the rules here are common practice

## Who uses it, *and for what*

-   **Shops** Give every size and colour its own short code before printing labels.
-   **Online sellers** Make matching codes for a whole range of variants and download them as a CSV.
-   **Wholesalers** Set one rule for item codes so every team names new items the same way.
-   **Makers** Code new product lines by category, material and size with a running serial.

Questions

## Questions people ask

Something else on your mind?

Ask us anything about modules, a quote or moving across. A person from our team replies.

[Ask a question](https://myrecords.cloud/contact/)

**How do I create an SKU number?**

Pick the few facts that tell your products apart (usually category, product, colour and size), shorten each to 2 to 4 letters by one rule, and join them in the same order every time with a hyphen. Add a serial at the end if two products would otherwise share a code. Apparel, Crew neck T-shirt, Navy blue, M with serial 1 gives APR-CRW-NVY-M-001.

**What is the difference between an SKU and a barcode?**

An SKU is your own code: you make it up, and it only has to be unique in your business. A barcode usually carries a GTIN (shown as EAN-13 or UPC-A), a global number that the brand owner gets through GS1, so the same product has the same number in every shop. One product can have both: the GTIN on the pack and your SKU in your books. You can also print your SKU as a Code 128 barcode for your own shelves.

**Should an SKU contain the price or the supplier?**

No. Leave out anything that can change: price, supplier, shelf or warehouse. If it changes, the code is wrong or must be changed, and every report and label that used it breaks. Put those facts in the item record instead.

**Why should an SKU not start with 0?**

Spreadsheets treat a code like 0042 as the number 42 and drop the zeros when you open a CSV, so 0042 and 042 turn into the same code. Start with a letter, or start the serial at 1 with padding after a letter part.

**Do I need a separate SKU for each size and colour?**

Yes, one SKU for each variant you sell and count separately. A T-shirt in 3 colours and 4 sizes is 12 SKUs. A pack of three sold as one item gets its own SKU too, or the stock count is never right.

**Why skip the letters O and I?**

They look like 0 and 1 on labels and in some fonts, so people type the wrong code. With the box ticked, the tool leaves them out of letter parts: Olive green becomes LVG, not OLV. Digits in sizes and serials are kept.

**Can I use the supplier's code as my SKU?**

You can, but it ties you to that supplier: change supplier and the code changes or stops making sense. Keep the supplier's code in the item record as a reference and use your own SKU for stock.

Last updated 4 Dec 2026 Facts last verified 4 Dec 2026 against the official sources below

This tool gives an estimate to help you plan. Rules change; confirm with your accountant before you file or pay.

Any business, anywhere

## One system for any business, anywhere.

Accounting, sales, stock, HR and payroll, CRM, support and an AI Assistant in one place. It works in any country and currency, and we customise it to the way your business runs.

[See every app](https://myrecords.cloud/product/) [Works worldwide](https://myrecords.cloud/solutions/worldwide/)

Free, no obligation

Request a quote

-   For the apps and modules you pick
-   At our best price, in writing
-   Your questions, answered by our team

[Request a quote](https://myrecords.cloud/contact/?topic=quote) [or contact us](https://myrecords.cloud/contact/)
