Choosing promptfoo output formats and reports

Pick the promptfoo output format that matches who reads the results, keep large runs from failing on export, and control the prompts and responses stored in every report file.

On this page

Choosing promptfoo output formats for each reader

Pick each output format for the reader who will act on it. A promptfoo run finishes with one result set, but engineers want to see failing outputs, CI pipelines want a pass or fail signal they can parse, compliance reviewers want evidence they can file, and leadership wants a summary they can read quickly. The format decision also decides how much sensitive content leaves the run. Prompts, model responses, variables and any data that reached the target can be written into the file, so every output file is a copy of that content, and it travels with the file wherever it is shared. This section covers the five formats promptfoo can write, HTML, JSON, JSONL, CSV and JUnit XML, and the trade-offs of each.

HTML suits people reviewing results in a browser, and it is the easiest file to hand to someone who does not run promptfoo. JSON keeps the full structure of each result, so scripts and downstream tools can query it. JSONL is the better choice for large runs. The promptfoo troubleshooting guidance recommends it for large datasets because it processes results in batches and avoids the memory limits that can make a JSON export fail. CSV opens in spreadsheets for quick filtering, but it flattens nested fields, so detail from each result may need to be reassembled before anyone can read it. Confirm the exact fields each format writes in your promptfoo version before you approve a format for a compliance file.

JUnit XML is the format for CI. Many CI systems read it as a test report, so each test case appears with a pass or fail status in the pipeline view. It carries little of the model output, so an engineer still needs another format to see why a case failed. Before you connect a format to a pass-rate gate, decide who will open the file after a failure, which fields they need and where the file will be stored, because every copy falls under your retention and access rules. Ask your compliance lead to confirm which file serves as evidence, keep the detailed files in a restricted location, and share only the summary artifact that the pipeline needs.

Which promptfoo output format fits which job

This table compares the five promptfoo output formats by who reads them, where each one fits, where it struggles and what sensitive content it carries. JSONL is the format the promptfoo troubleshooting docs recommend for large datasets because it processes results in batches. Check the other rows against the flags of the promptfoo version you run, because options can change between releases.

FormatMain reader and where it fitsWhere it strugglesSensitive content it carries
HTMLStakeholders and reviewers who want a readable summary to open in a browserNot built for machine parsing, and a large run makes a heavy page to sharePrompts, model outputs and test variables in readable form, so store it like a report
JSONEngineers and scripts that need the full structured result of one runLarge runs can fail on export because of memory limits, per the troubleshooting docsPrompts, outputs, variables and whatever metadata the run records
JSONLEngineers processing large datasets, the format the troubleshooting docs recommendNeeds line-by-line tooling and is less friendly for manual readingResult records, including prompts and outputs, written one result per line
CSVAnalysts comparing pass and fail results across models in a spreadsheetNested fields and multi-line responses need careful handling in spreadsheet toolsPrompts and outputs in cells, which spreadsheets can copy or sync to other places
JUnit XMLCI systems and test dashboards that show pass and fail per test caseCarries little beyond pass, fail and error, so detailed debugging needs another fileFailure messages can quote prompt or output text, so check what your CI stores

How to decide the format for a promptfoo run

The path starts with who consumes the results. Machine-only output goes to a CI gate check: when a pipeline reads the file, use JUnit XML. Reviewers who browse results go to a size check. Large runs should use JSONL, which the troubleshooting docs recommend because it processes results in batches and avoids the memory limits that can make JSON export fail. Smaller runs can use an HTML or CSV report. JSON suits scripts that read a single file. Every path then meets the same question: does the file leave the team? If yes, redact sensitive fields before sharing. If no, keep it in restricted storage. Check the choice against the table above.

Format choice follows the audience, run size, and whether the file leaves the team.

What engineers, CI pipelines, auditors and leadership each need from a report

Engineers debugging a failed run need the full chain from input to verdict, so they can tell whether the prompt, the model, the grader or the target caused the problem. The HTML viewer suits reading individual cases, while JSON or JSONL suits scripted searches across many results. Limit the detail to the team that owns the suite.

  • Test inputs and rendered prompt: the variables and final prompt sent for each case, so a failure can be reproduced.
  • Model output and failing assertion: the response plus the assertion type and its reason, which separates a quality miss from a harness problem.
  • Errors kept apart from verdicts: timeouts and provider errors should appear as errors, so the cause of each failure is clear.
  • Provider and model identifiers: the target used for each row, so a regression can be traced to a model or endpoint change.

Trim cost and token columns unless you are chasing spend, and keep API keys and auth headers out of every file. Before a failure file leaves the team, check that it contains no customer records or credentials.

Why large promptfoo runs push teams toward JSONL

A large suite produces many results at once, and at that size the output format becomes an engineering decision. The promptfoo troubleshooting docs recommend JSONL for large datasets because it processes results in batches and avoids the memory limits that can make a JSON export fail. A JSON export has to hold one complete document, which is the step most exposed to those limits. Before the run starts, multiply your test cases by your prompts and providers to estimate the result count, then choose the format for that count. The promptfoo troubleshooting docs set out the recommendation.

The trade-off is readability. JSONL writes one complete result per line, which suits scripts, jq, database loaders and dashboards that read records one at a time. It does not give a reviewer a single document to open, scroll and sign off. If a manager, security reviewer or auditor needs one file, plan a conversion step after the run and name the person who owns it. A conversion that loads every line into one array can hit the same memory limit, so test it on your largest output file before you depend on it. Run the conversion on a machine with enough memory for the full output file.

Confirm the current batching and memory behavior in the promptfoo version you run before you write the format into a pipeline. Run the same suite once as JSON and once as JSONL on a representative subset, then compare record counts and file sizes. Keep the JSONL file under the same access controls as any JSON export, because a line-per-result file still holds full prompts, model responses and any sensitive test data. Record which file is the complete source of truth and which is a converted copy, so reviewers know where to look.

Setting up report output for a team

This sequence takes a team from an open question about who reads promptfoo results to a documented output setup that every run follows. Each step ends with a check that a person or tool can repeat. The result is a runbook entry that names the format, location, reader and owner for each report.

  1. Agree which readers need which outputs

    Ask the people who consume results what they need to do with them: a reviewer scanning failures, a CI job gating a merge, an analyst charting trends, or a security lead reading red team findings. The team lead or platform owner writes one line per reader that names the decision each file supports. Note which readers will see prompts and model responses, since those are the most sensitive parts of the output. Check: every reader on the list has a stated use and an owner who has confirmed it in writing.

  2. Pick one format for each reader

    Map each reader to one of the five formats: HTML for people who review results in a browser, JSON for scripts that need the full structure, JSONL for large datasets, CSV for spreadsheet users, and JUnit XML for CI systems that read test results. Choose JSONL when the suite is large, because promptfoo's troubleshooting guidance recommends it for processing results in batches and avoiding the memory limits that can make JSON export fail. Check: each reader has one primary format, and the owner of each CI job confirms that the job reads the chosen file type.

  3. Set a fixed output location outside shared folders

    Write the output path into the run command or config file so every run writes to the same place. Keep that location out of shared drives, synced folders and team wikis, because these files can contain prompts, model responses and test payloads. Limit read access to the account that runs the job and the people named in step one. Check: the directory permissions show that a user outside the named group cannot open the folder, and the path appears in a config file under version control.

  4. Run a small suite and parse each file

    Run a small suite that uses the assertions and red team plugins you plan to rely on, then open every output file with the tool that will read it. Parse the JSONL file line by line with a JSON parser, load the JSON file with a JSON parser, validate the JUnit XML in the CI job's test reporter, and open the HTML file in a browser. Check: each parser completes without errors, the CI job shows the expected number of tests, and a reviewer confirms the HTML file shows only the fields they are allowed to see.

  5. Run a large suite to confirm export completes

    Run the largest suite the team expects, using the chosen format, and confirm that the export finishes without memory errors or truncated output. If JSON export fails on the large run, switch that reader to JSONL and repeat the run. Keep the same parser from the small-suite check so the two runs can be compared. Check: the number of records in the exported file matches the number of test cases reported at the end of the run, and the file parses without errors.

  6. Document the format and location in the runbook

    Record the chosen format, output path, folder permissions, reader and owner for each report in the team runbook. Include the command that produces each file and the parse check from the small-suite step. Add a short note on which fields each file contains, so reviewers know which files hold prompts and responses before anyone shares them. Check: a team member who did not run the setup follows the runbook on a small suite and produces the same file types in the same location.

Treating promptfoo report files as sensitive data

Eval and red team reports are copies of your test data, the model's outputs and sometimes your connection settings, so they need the same handling as the systems they came from. The cards below cover what each file can carry, the control to apply to it and where a shared copy needs an access plan before anyone else receives it.

Test prompts reveal system design

Reports include the prompts sent during each run. For an application under test, that often means the system prompt, which can hold business rules, tool names and guardrail wording. Store prompt-bearing files in restricted storage, because anyone who reads them learns how the application is built and where its defenses sit. Before sharing a report outside the test team, confirm that your prompt text is cleared for that audience.

Model responses echo sensitive input

A model can repeat personal details, internal document text or secrets that appeared in the prompt, so the response column is as sensitive as the input that produced it. Retention is a decision your team must make and enforce, because the output folder keeps every copy until someone removes it. Set a schedule for deleting old run folders, and check the HTML, JSON and CSV outputs, since a response appears in each of them.

Variables can hold personal data

Test cases often pull variables from spreadsheets or datasets, and those variables can carry customer names, account numbers or patient records that your team copied from production. Redact or replace identifiers before export, using synthetic values in the source file where you can, so the report never receives the original records. Keep the source dataset under the same access rules as production data, because each report is only a copy of what it was built from.

Endpoints and credentials leak into logs

Logs and saved configurations can record the target URL, the headers sent to the application and the API keys or session tokens used to reach it. Keep credentials in environment variables or your secrets manager, out of the config file. Scrub Authorization headers and provider keys before a log leaves the test environment, and rotate any key that appears in a file that was shared.

Limit who can open output folders

Report folders on a shared CI runner or a developer laptop can be readable by anyone with the same account. Limit read access to the test owner and the reviewers who need the results, and keep the output directory out of shared drives and synced folders. Check CI artifact settings too, since artifact visibility is set by your pipeline configuration and may expose files to a wider group than the folder permissions suggest.

Shared server needs an access plan

The self-hosted promptfoo server keeps its data in a local SQLite database and has no built-in authentication, so anyone who can reach the server can open the results stored in it. Plan access before sharing a report through that server, using network restrictions or an authenticating proxy your team operates, and limit who receives the link. The project does not recommend the self-hosted setup for production use, so treat it as a team tool with a written access plan.

Self-hosting docs

How sharing a report changes the risk

Sharing a report changes the risk more than the output format does, because each place a result lands has its own set of people who can open it and its own retention. The promptfoo introduction states that the software runs completely locally: evals run on your machine and talk directly with the LLM. The main exposure therefore sits in where the output files are stored and who can open them afterward. Four paths need separate treatment: a file on a laptop, a CI artifact, a result uploaded to a shared viewer and a copy sent to a reviewer. Each one answers the access and retention questions differently.

A laptop file is open to anyone who can reach that machine, along with any backup, sync or screen-sharing tool that copies it. A CI artifact is readable by people with access to the pipeline run and lasts as long as your CI system's artifact retention setting allows, so confirm that setting before the first run. A result uploaded to a shared viewer inherits that viewer's access population and retention. The self-hosted server needs the closest check. Its self-hosting documentation describes local SQLite storage with no RBAC, built-in authentication or SSO, so access control has to come from your network and proxy layers. A copy emailed to a reviewer leaves your control and persists in their mailbox and downloads folder.

Before any path carries regulated data, run a short test. Open the exact file or share that the command produces and list what it contains: prompts, model outputs, test variables, provider names and any customer or patient records used as inputs. Then answer three questions in writing: who receives access, how long the copy persists and how it gets deleted. Treat each sharing path as its own data flow with its own approval, and do not assume a report built for an internal team can go to an external reviewer unchanged. Redact or replace sensitive variables before sharing, and name one owner for every shared link. Confirm retention and deletion terms for each destination with the party that operates it before the first upload.

What to confirm in your promptfoo version and environment

The formats, flags, memory behavior, retention and access rules below change with the promptfoo release and the environment around it, so each one needs a check before reports reach production. Verify every item against the promptfoo documentation for the version you install, then confirm the result with the security owner who approves where your data lives.

Formats the installed version writes

Format support can differ between promptfoo releases, so do not assume that HTML, JSON, JSONL, CSV and JUnit XML all exist in the version your pipeline installs. Run a short eval on the pinned version, write each format to a scratch directory and open every file. Confirm the list in the promptfoo documentation for that exact version, then ask the security owner which formats your reviewers are allowed to receive.

Exact flags for each format

Output flags and file extensions are easy to copy from an outdated example and get wrong. Record the exact flag that writes each format in your version, including whether the output path sets the format or a separate flag does. Check that the file a reviewer opens is the format they requested, since a wrong flag can silently produce a file nobody expected. Have the platform team commit the confirmed flags to the pipeline definition, where they can be reviewed.

Export behavior on memory limits

promptfoo recommends JSONL output for large datasets because it processes results in batches and avoids the memory limits that can make JSON export fail. Test your largest suite on the runner size your pipeline really uses, not a developer laptop, and watch peak memory during the export step. A JSON export that fails at the end of a long run wastes the whole run, so confirm the batching behavior and any remaining limits in the troubleshooting documentation for your version.

Troubleshooting docs

CI artifact retention by data class

Reports saved as CI artifacts stay for a retention period set by the CI platform or project, and the default may not match your data classification. Eval outputs can contain prompts, model responses, test variables and any sample records used to build test cases. Confirm the retention period for each report format and pipeline, and check who can download artifacts. Agree on these rules with your security owner before the first pipeline publishes a report.

Data each shared result uploads

Sharing a result sends it outside the runner, so the uploaded payload decides the risk. Confirm which fields a share sends to promptfoo cloud or your self-hosted server, including prompts, outputs, variables and metadata, and whether any of them are removed first. The self-hosting documentation describes a local SQLite database that cannot be shared across replicas, so check how your deployment stores what arrives. Get the field list for your version and approve it with your security owner.

Self-hosting docs

Enterprise access controls for reviewers

Team sharing, teams-based access control and SSO belong to the paid Enterprise edition, while the self-hosted server documentation says it has no RBAC or built-in SSO. If the reviewers involved sit outside the pipeline team, decide whether they need role-based access tied to your identity provider before you choose a format or sharing path. Confirm which edition and deployment fit those reviewers on the pricing page, then verify the choice with your security owner.

Pricing page

Questions teams ask before choosing promptfoo reports

What does it cost to set up promptfoo report handling, and who pays?

The promptfoo Community edition is free and includes all LLM evaluation features, so most of the cost is the work around the software. Your team pays engineering time to choose formats, add report steps to CI or scripts, and set storage and access rules for report files. That setup work is one-time. Recurring costs are storage, retention, and the time spent reviewing reports at each release. The main cost drivers are scope (how many suites and pipelines produce reports), the number of readers, how sensitive the data is, and how deeply reports are wired into CI. If you hire a partner, DeployOpen works from a written, fixed scope and issues a quote from that scope. Ask for setup and ongoing support to be priced separately so you can see what recurs.

How long does promptfoo report setup take, and what drives the timeline?

No duration is published for this work, so ask for a timeline tied to a written scope. Time depends on how many output formats you need, how many readers each one serves, how many pipelines and suites produce reports, and whether a compliance or security review must sign off before anyone outside engineering sees them. Large suites add effort because they push you toward a format that processes results in batches. Sensitive data adds time for redaction rules and access checks, and CI integration adds time for testing pipeline stages on the runners you actually use. A useful scope lists the formats, pipelines, readers and sign-off steps, so each one has a milestone you can check.

What does the internal team need to provide for promptfoo reports?

Your team needs to supply access, owners and sample output before the work starts. In practice that means:

  • Access to the repository and CI system where promptfoo runs, with rights to change pipeline steps.
  • A named owner for each reader group, such as security, compliance and engineering, who can confirm what that reader needs.
  • The storage location, retention period and list of people allowed to open report files.
  • Output from one recent eval and red team run, so format choices are tested against your actual results.

Owner and retention decisions often take longer than the configuration itself, so start them early. Someone with authority over the reports should be available to approve the format choices before they reach a shared pipeline.

Can our team choose and configure promptfoo output formats without a partner?

Yes, if one engineer can run promptfoo locally, read its documentation and add a command to a CI job. Promptfoo runs on your machine and talks directly to the model under test, so format choices can be tried on a laptop before they reach a pipeline. The harder decisions sit outside the tool: who reads each file, how long files are kept, and which fields must be removed before sharing. Those decisions stall when nobody owns them, and that is where a written scope with named owners helps. DeployOpen can plan and document these settings inside your own infrastructure under a fixed scope, and your team can also do the work internally if it has the time and access.

Which report format should a compliance reviewer receive from promptfoo?

Give compliance reviewers a readable summary, and keep the machine-readable output in controlled storage as the record behind it. A summary should state the date, the promptfoo version, the configuration used and the pass and fail counts, so a reviewer can tie it to one release. Ask the reviewer's framework owner what they accept as evidence before you choose a format, because their control requirements decide what counts. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make that determination.

How do we keep prompts and responses out of shared promptfoo reports?

Decide which fields leave the pipeline before the first run, then remove or pseudonymize them before any file is shared. In practice:

  • Strip raw prompts and model responses from any report sent beyond the engineering team.
  • Keep full-fidelity output in restricted storage with access logging and a retention limit.
  • Share pass rates and failing test identifiers with wider audiences, and leave out the underlying text.

Check each eval and red team setting for fields that store full outputs, then test your redaction on a sample run before the first shared report. Large batch files are where sensitive text tends to accumulate, so review those first.

When do promptfoo Enterprise features change which report format we choose?

They change the decision when reports must be shared across a team, limited by role, or monitored over time. The Community edition covers the evaluation features, but Enterprise adds team sharing, access control by team, SSO, custom roles and permissions, continuous monitoring and a centralized guardrail dashboard. The self-hosted open-source server is a different case: its documentation says it stores data in a local SQLite database, has no role-based access control and no built-in SSO, and is not recommended for production. If you need those controls on your own infrastructure, the On-Premise edition runs the Enterprise functionality with complete data isolation and a dedicated deployment engineer. Enterprise pricing is custom, so request a quote against your written scope. promptfoo pricing page

Which output format works for large promptfoo eval runs?

JSONL is the format promptfoo's troubleshooting guide recommends for large datasets, because it processes results in batches and avoids the memory limits that can make JSON export fail. Use it for machine processing and large runs, and keep a summary format such as HTML for people who read results directly. Confirm the exact output flags for your installed version in the promptfoo documentation, since flag names can change between releases. If you parse results with scripts, test the JSONL reader on a small batch before pointing it at full output. Pair the choice with a limit on what each file contains, so a large export does not become the largest sensitive-data file in your pipeline. promptfoo troubleshooting guide

How DeployOpen scopes promptfoo reporting work

DeployOpen plans output formats around the people who read promptfoo results and the systems that consume them. Each engagement starts by mapping readers, file sizes, retention rules and the sensitive data each file may contain. Scope, deliverables and timelines are agreed in writing before configuration work begins.

How we scope

  • The written scope maps each reader group to HTML, JSON, JSONL, CSV or JUnit XML output.
  • Scope flags suites with large result sets, where JSONL is the format promptfoo recommends for batch processing.
  • Scope records who handles sensitive output, where files are stored and how long they are kept.

How we build

  • We set output paths and formats in the promptfoo configuration and run them in your environment.
  • Test runs check that each file opens, parses and carries the fields the named readers need.
  • Large-suite runs are tested in JSONL on a copy of your biggest suite before go-live.

How we hand over

  • A written guide explains each format, its reader, and the redaction steps applied before sharing.
  • Config files, sample output and an operations runbook are delivered to your team.
  • Your team walks through the output with the people who review results, before go-live.

How we support

  • Ongoing support, format changes and upgrade checks can be covered by a retainer.
  • Re-check report output after each promptfoo upgrade to confirm the fields your readers use.
  • Sensitive-data handling is reviewed when the reader list or storage location changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.