Home › Developer Tools › SKU Generator

SKU Generator

Turn product attributes like brand, category, model, size and color into short, consistent SKU codes. Set the segment order, code length and separator once, generate every size and color variant at once or paste a CSV product list, and download the result as a spreadsheet.

Last updated:

Every size × color combination becomes one SKU. Leave a list empty to skip that attribute.

SKU rules
Example SKU–

Advertisement
Advertisement

How to use the SKU Generator

  1. Enter the product attributes: brand, category, product name and the lists of sizes and colors (or switch to Bulk from CSV).
  2. Arrange the segments in the SKU rules: tick the parts you want and move them left or right.
  3. Pick the code length, style and separator, and add custom codes such as Forest Green = FGR.
  4. Click Generate SKUs; the table also updates as you type.
  5. Download the CSV or copy the SKUs into your inventory, store or spreadsheet.

Anatomy of a well-structured SKU

A SKU reads from general to specific. With the default rules, a medium black organic-cotton T-shirt from the Northwind brand's Classic Crew line can look like this:

SegmentValueCodeWhy
BrandNorthwindNRTSeparates product lines if you sell several brands
CategoryT-ShirtTSHGroups similar items when sorting
Product / modelClassic CrewCCRIdentifies the design
SizeMediumMStandard size code
ColorBlackBLKStandard 3-letter color code

Result: NRT-TSH-CCR-M-BLK. Turn on the Extra segment to include material (OC for organic cotton), or add a sequence number for items without distinguishing attributes.

Common size and color codes

SizeCodeColorCodeColorCode
Extra smallXSBlackBLKGray / GreyGRY
SmallSWhiteWHTBrownBRN
MediumMNavyNVYBeigeBGE
LargeLBlueBLUCharcoalCHR
X-LargeXLGreenGRNOliveOLV
XX-LargeXXLRedREDNaturalNAT
One sizeOSYellowYLWMulticolorMLT

SKU best practices

  • Decide the format once. Changing SKUs later breaks reports, reorder history and marketplace listings.
  • Keep codes fixed-length per segment so SKUs sort neatly and are easy to read on a shelf label.
  • Use only letters, digits and one separator. Spaces, slashes and symbols cause trouble in URLs, barcodes and spreadsheets.
  • Don't encode things that change such as price, supplier or warehouse location.
  • Never recycle a SKU. When a product is discontinued, retire its SKU rather than giving it to a new item.
  • Print it as a barcode if you scan stock: a Code 128 barcode can hold any SKU made of letters, numbers and dashes.

Frequently asked questions

What is a SKU?

A SKU (stock keeping unit) is an internal code a business assigns to each distinct product variant it stocks, for example NOR-TSH-CCR-M-BLK for a medium black T-shirt. Unlike a UPC or EAN barcode number, you create SKUs yourself, so they can be readable and follow your own rules.

How do I create a good SKU format?

Start with the broadest attribute and end with the most specific, such as brand, category, model, size, color. Keep every SKU short (8 to 12 characters is common, rarely over 20), use the same code length and separator everywhere, use letters and numbers only, and never reuse a SKU for a different product.

Should a SKU start with a zero or contain O and I?

It is best to avoid starting with 0, because spreadsheets may strip leading zeros, and to avoid the letters O and I, which are easily confused with 0 and 1. The 'Avoid look-alike letters' option removes O and I from generated codes.

What is the difference between a SKU and a UPC?

A UPC (or EAN/GTIN) is a globally unique number bought from GS1 and printed as a barcode so any retailer can scan it. A SKU is internal to your business and can follow any format you like. Many sellers have both for each variant.

How does the tool abbreviate words?

Smart style takes the first letter and then the consonants, so Northwind becomes NRT and Charcoal becomes CHR. Multi-word values use initials plus letters of the last word, so Classic Crew becomes CCR. Standard sizes and colors use common codes like XL and BLK, and you can override any value with a custom code.

What happens if two products get the same SKU?

The tool detects duplicates and adds a numeric suffix (for example -2) so every SKU stays unique, highlights those rows in red and reports how many were fixed. It is usually better to then add a custom code or another segment so the SKUs are meaningful.

Can I import my product list?

Yes. In Bulk from CSV, paste or load a CSV with a header row. Columns named brand, category, product (or name/model), extra (or material/style), size and color are used to build the SKU; any other columns are kept and included in the downloaded CSV.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Barcode GeneratorCreate Code 128, EAN-13, UPC-A, EAN-8, Code 39 and ITF-14 barcodes as PNG or SVG.Random String GeneratorGenerate secure random strings and tokens in bulk with any length and character set.CSV ViewerOpen a CSV or TSV file as a sortable, filterable table.UUID GeneratorGenerate UUID v4 and v7 / GUIDs in bulk and copy or download them.Barcode Label Sheet MakerPrint barcode price labels with product name and price on 30, 60 or 80 per sheet layouts.Bulk Barcode GeneratorTurn a list or CSV into hundreds of barcodes at once: ZIP of PNG/SVG or a printable label PDF.Printable Inventory SheetMake a printable inventory count sheet with item, SKU, location and quantity columns. PDF or CSV.Price Tag MakerMake printable price tags and shelf labels with sale prices and strike-through, on a cut-ready sheet.QR Code GeneratorMake QR codes for links, Wi-Fi, email and more.Schema Markup Generator (JSON-LD)Create JSON-LD structured data for FAQ, Product, Article and more.Htaccess & Nginx Redirect GeneratorBuild 301 redirects for .htaccess, Nginx and Netlify or Cloudflare _redirects.Fake Data GeneratorGenerate mock data as JSON, CSV or SQL.API Key GeneratorCreate secure API keys and secrets with prefixes, checksums and SHA-256 hashes for storage.MIME Type LookupFind the MIME type for any file extension, or the extensions for a MIME type, in 400+ entries.Cron Expression GeneratorBuild crontab schedules visually, read them in plain English and see the next run times.URL Slug GeneratorTurn titles into clean, SEO-friendly URL slugs: accents, stop words, separators and bulk lines.JSON Schema GeneratorTurn sample JSON into a draft 2020-12 JSON Schema with types, required fields and formats.Gitignore GeneratorBuild a .gitignore from 50+ templates for languages, frameworks, IDEs and OS, merged and deduped.License GeneratorCreate a LICENSE file for MIT, Apache, GPL, BSD, ISC, MPL or Unlicense with your name and year.ULID GeneratorGenerate sortable ULIDs and UUID v7 in bulk, monotonic option, and decode their timestamps.Htpasswd GeneratorCreate .htpasswd entries with bcrypt, APR1-MD5 or SHA-1 for Apache and Nginx basic auth.Placeholder Image GeneratorCreate placeholder images in any size, color and text as PNG, JPG, WebP, SVG or data URI.Ads.txt GeneratorCreate or validate ads.txt and app-ads.txt files: seller lines, cert IDs and variables.Docker Run to Compose ConverterConvert docker run commands to docker-compose.yml, or a compose file back to docker run.Dockerfile GeneratorGenerate a production Dockerfile and .dockerignore for Node, Python, Go or a static nginx site.HTML Boilerplate GeneratorTick the options you need and get a clean HTML5 starter template with meta, OG tags and CSS reset.JSON to Zod SchemaInfer a Zod (or Yup) schema from sample JSON with optional, nullable and z.infer types.Linux Commands Cheat SheetSearchable Linux and bash command reference with flags explained, examples and copy buttons.LLMs.txt GeneratorBuild an llms.txt file for AI crawlers: summary and link sections, import from your sitemap.Nano ID GeneratorGenerate secure Nano IDs with custom alphabet, length and count, plus a collision calculator.Nginx Config GeneratorBuild an nginx server block: static site, SPA, reverse proxy or PHP, with SSL, gzip and redirects.OpenAPI / Swagger ViewerView OpenAPI 2/3 JSON or YAML as interactive API docs with validation and an endpoint list.package.json GeneratorFill a form and get a valid, npm-ready package.json with scripts, dependencies and checks.PKCE Code Challenge GeneratorGenerate an OAuth 2.0 PKCE code_verifier and S256 code_challenge, build auth URLs, verify pairs.README GeneratorFill in a form and get a polished README.md with badges, install, usage and license, live preview.Regex GeneratorBuild regular expressions visually from blocks or presets (email, date, phone) and test them live.Commit Message GeneratorBuild Conventional Commit messages with type, scope, body, breaking change and issue refs.Database Schema DesignerDesign tables and relationships visually, then export SQL for MySQL, PostgreSQL or SQLite.Jinja2 Template TesterRender Jinja2 templates with YAML or JSON variables using real Jinja2, with clear error lines.JSON Schema Mock Data GeneratorGenerate realistic sample JSON from a JSON Schema: formats, patterns, $ref, seeds and counts.Kubernetes Secret GeneratorCreate Kubernetes Secret YAML from key/value pairs or .env with auto base64, or decode one.Kubernetes YAML ValidatorValidate Kubernetes manifests against the API schema of a chosen version, with error paths.Prettier Config GeneratorToggle Prettier options, preview formatted code live and copy your .prettierrc file.Quartz Cron GeneratorBuild and explain Quartz and Spring cron expressions with seconds, ?, L, W and #, plus next fire times.README Badge GeneratorCreate Shields.io-style README badges for license, version, build and custom labels.Systemd Service File GeneratorCreate a systemd .service unit with ExecStart, user, restart policy, environment and hardening.tsconfig.json GeneratorBuild a tsconfig.json with target, module, strict checks and path aliases, each option explained.Access Log AnalyzerAnalyze Apache and Nginx access logs: top URLs, IPs, status codes, bots and traffic charts.Regex String GeneratorGenerate random test strings that match any regular expression, checked against the real regex.ASCII Table GeneratorTurn CSV or pasted cells into plain-text tables: MySQL, Markdown, Unicode box and reST styles.Docker Compose GeneratorBuild a docker-compose.yml with a form: services, ports, volumes, env, healthchecks and presets.Dummy File GeneratorCreate test files of an exact size in KB, MB or GB with zeros, random bytes or text.FFmpeg Command GeneratorPick a task and options, get the exact ffmpeg command with every flag explained.Folder Tree GeneratorTurn a local folder or an indented list into an ASCII directory tree for your README.GitHub Actions Workflow GeneratorBuild a GitHub Actions CI workflow: triggers, matrix, caching, tests, Pages or Docker deploy.Kubernetes YAML GeneratorGenerate Deployment, Service, Ingress, ConfigMap, Secret and HPA manifests with safe defaults.Markdown TOC GeneratorGenerate a linked table of contents from Markdown headings with GitHub-style anchors.OpenAPI EditorEdit OpenAPI/Swagger YAML or JSON side by side with live API docs, validation and download.OpenAPI ValidatorValidate OpenAPI 3.0/3.1 and Swagger 2.0 specs: schema errors, broken $refs, line numbers.Pivot Table MakerBuild pivot tables from CSV or Excel by drag and drop: sum, count, average, charts, export.SQL Query BuilderBuild SELECT queries visually: joins, filters, GROUP BY, ORDER BY and LIMIT, as clean SQL.Truth Table GeneratorType a logic expression and get its full truth table, minterms and canonical DNF/CNF.TypeScript PlaygroundWrite TypeScript with live type checking, see the compiled JavaScript and run it in your browser.Article Schema GeneratorCreate Article, BlogPosting or NewsArticle JSON-LD with headline, authors, dates and images.Event Schema GeneratorCreate Event JSON-LD with dates, venue or online location, tickets, organizer and performers.Google Search Query BuilderBuild advanced Google searches with site:, filetype:, intitle:, exact phrases and date operators.HowTo Schema GeneratorCreate HowTo JSON-LD with steps, tools, supplies, total time and cost, then copy it.Htaccess GeneratorBuild an Apache .htaccess file: HTTPS, www, gzip, caching, error pages, IP blocks, hotlinks.
See all 85 Code Generators & Builders →