Mock Product Catalog Generator: Create E-Commerce Test Data

Build realistic product catalogs for e-commerce testing. Use our product catalog generator to export mock e-commerce data in JSON, SQL, or CSV formats instantly.

xDevToolsInitializing Tool

Related Utilities

Last Updated: August 16, 2026|Author: Yogeesh S, Senior Software Engineer

Engineering Data Modeling with a Product Catalog Generator

Building reliable e-commerce platforms requires testing against high-volume, realistic datasets. Manual data entry is not only time-consuming but often fails to capture the edge cases—like out-of-stock items or varying price ranges—that break production systems. A reliable product catalog generator solves this by providing structured, randomized, and schema-compliant mock e-commerce data tailored to specific niches.

When you are designing database schemas or testing front-end rendering, you need data that mimics production realities. Whether you are validating your SQL constraints or stress-testing a JSON API, having an inventory generator at your disposal prevents the "empty database" roadblock during early development. By controlling attributes like SKU logic and stock levels, you ensure your test environment accurately reflects the complexity of your live catalog.

Customizing Your Mock E-Commerce Data Settings

Every testing scenario demands different data characteristics. The catalog configuration options allow you to tune the output to match your specific requirements, from simple prototyping to complex integration testing.

SettingFunctionalityImpact on Output
Product NicheSelect between tech, fashion, home, or sportsDetermines the noun, brand, and category pools.
Products LimitSet between 1 and 200 itemsControls the scale of the generated dataset.
Price BoundariesDefine minimum and maximum valuesRandomizes pricing within your specified currency range.
In Stock RatioSlider for stock availability (0-100%)Adjusts the boolean flag for inventory management testing.
Schema FieldsCheckbox toggles for SKU, Rating, Brand, etc.Adds or removes attributes from the final JSON, SQL, or CSV output.

If you are working on a search-filtering feature, you might want to enable marketing tags and technical specifications. If you are verifying a checkout flow, the in-stock ratio is your most critical setting to simulate "out of stock" scenarios that might otherwise be overlooked during unit testing.

How the Product Data Generator Logic Works

The generation engine uses a deterministic randomization approach to ensure consistent results across runs. When you choose a niche, the tool maps your requested limit against a predefined data pool containing categories, brands, and specific product nouns.

The pricing calculation is based on a linear interpolation between your chosen boundaries:
$$Price = MinPrice + (Random(0, 1) \times (MaxPrice - MinPrice))$$

This formula ensures that prices remain within your logical bounds while maintaining enough variance to test your sorting and range-filtering logic. For SKU generation, the engine uses a combination of brand shorthand, sanitized product titles, and an incremental index to ensure that while the data is synthetic, the formatting remains consistent with typical retail database standards.

Configuring Your E-Commerce Testing Payload

Before you trigger the generation, ensure your output format matches your environment's requirements. Selecting JSON Array is ideal for front-end development or mocking API endpoints. The SQL INSERT option provides a direct path to seeding relational databases, while CSV Sheet is perfect for bulk data migration testing or spreadsheet-based inventory analysis.

If you find that your front-end components are not displaying ratings or tags correctly, simply check those boxes in the schema field setup. This immediate feedback loop allows you to toggle attributes on and off without restarting your local development server.

Walkthrough: Creating a Tech-Focused Inventory Seed

If you are building a new electronics store, you need specific technical identifiers. Follow these steps to generate a focused dataset for your tech category.

1

Niche Selection

Choose "Tech & Gadgets" from the dropdown menu to pull from the specific library of hardware nouns and brands.

2

Limit Adjustment

Set your limit to 50 items to ensure your UI's pagination or infinite scroll logic has enough data to render correctly.

3

Schema Refinement

Check "SKU Code" and "Technical Specifications" to see how your product detail page handles complex hardware attributes.

4

Output Selection

Select "JSON Array" and click "Spawn Catalog" to copy the generated data directly into your mock service.

Example Output: Standard JSON Data Structure

When you generate a product catalog, the output is structured to mirror real-world API responses. Below is a representation of how a single tech item appears in your final payload.

BEFORE (INPUT)
Niche: Tech
SKU: Checked
Specs: Checked
AFTER (OUTPUT)
[
  {
    "id": 1,
    "title": "Wireless Earbuds",
    "category": "Audio",
    "brand": "Anker",
    "price": 45.99,
    "inStock": true,
    "sku": "ANK-WIRELESS-E-1000",
    "rating": 4.5,
    "specs": { "battery": "8 hrs", "bluetooth": "5.2" }
  }
]

Best Practices for Scaling Product Test Data

When you need to simulate massive catalogs, the approach changes. While this tool is excellent for rapid prototyping and local testing, consider how you use the data to avoid performance bottlenecks. Always generate the exact number of records you need for a specific test run. If you are testing a search index, include marketing tags and brands to ensure your search facets have enough volume to function accurately.

For SQL database seeding, ensure your local environment is wiped before running new INSERT statements to avoid primary key conflicts. If you are using the CSV output, verify your import tool's column mapping, as the schema fields are dynamic based on your checkbox selections.

Troubleshooting Common Data Discrepancies

If your data doesn't appear as expected, verify your boundary settings first. A common mistake is setting the price boundaries too tightly or too broadly, which can make range-filtering logic appear broken. Similarly, if your "In Stock" flags are all true, check if your in-stock ratio slider is set to 100%.

If your SKU codes are not appearing in your database import, verify that the "SKU Code" checkbox was active at the moment of generation. These fields are injected dynamically; if you change a setting, you must re-generate the catalog to update the underlying dataset before copying the output to your clipboard.

Resolving Product Catalog Generator Data Inconsistencies

Why does the inventory generator sometimes produce the same SKU for different runs?

The tool uses a combination of the product index and internal logic. If you keep the same limit and settings, the sequence will remain deterministic to help you reproduce test results.

When should I choose SQL over JSON for my mock e-commerce data?

Choose SQL if you are directly seeding a development database like PostgreSQL or MySQL. Use JSON if you are mocking a REST API response for a front-end framework.

What happens to my data if I refresh the page?

Since this product catalog generator runs entirely within your current browser session, refreshing the page will reset your current dataset. Always copy your output to a local file before closing the tab.

How can I simulate an empty catalog?

You cannot set the limit to zero, but you can set the limit to 1 to verify how your UI handles a single-product collection.

Which niche is best for testing search facets?

The "Mixed Categories" niche is the most effective for testing cross-category search and filtering logic, as it populates the data pool with a variety of brands and categories.

Can I manually edit the generated CSV files?

Yes, the CSV output follows standard formatting rules and can be opened in any spreadsheet editor or text-based CSV parser for further refinement.

Why are the ratings always between 3.0 and 5.0?

The rating logic is designed to simulate a realistic, mature product catalog where products have generally positive feedback, which is standard for most e-commerce testing scenarios.

What does the in-stock ratio slider actually calculate?

It applies a probability check to each product generated, effectively setting the inStock boolean field to true or false based on the percentage you provide.