Skip to content

Exporting Data

The Export tab formats your generated data for use outside MockMagic. Whether you need to paste test data into a spreadsheet, feed it to an API, or embed it directly in C# code, the Export tab handles the conversion and copies the result to your clipboard.

Using the Export Tab

  1. Format dropdown - Select the output format: Text, CSV, JSON, or C# Code.
  2. Variable Name - (Shown only for C# Code format.) Set the variable name used in the generated C# array declarations.
  3. Copy to Clipboard - Click to copy the formatted output.
  4. Preview - A scrollable text area showing the full formatted output. Updates automatically when you change the format or variable name.

If no data has been generated yet, the tab shows a help message: "Generate some data first."

Mock Magic documentation screenshot

Data Priority

The Export tab automatically uses the most recent data you generated, in this priority order:

  1. Multi-series data (from the Series tab with Series Count > 1)
  2. Single series data (from the Series tab with Series Count = 1)
  3. Simple data (from the Simple Data tab)