Karve app icon

Karve

Blog

How to export a Postman collection as JSON

July 10, 2026 · Updated October 26, 2026 · Pavel, XAKPC Dev Labs

Export a Postman collection as JSON in four steps

  1. Click Collections in the Postman sidebar.
  2. Click ⋯ (View more actions) next to the collection, then select More → Export collection.
  3. In the dialog, skip the invite and Copy Collection Link options and click Export JSON.
  4. Save the .json file somewhere outside a public repository until you have checked it for credentials.

Postman collection actions menu with Export at the bottom of the More submenu

Current Postman versions no longer ask you to choose a format: the download is always a Collection v2.1 file, which any v2.1-aware tool can read. Steps checked against Postman's own export documentation in October 2026.

Only need one request as cURL? Open the request, click Code (</>) in the right sidebar, pick cURL, and copy. No export needed. For whole collections, see the Postman to cURL converter.

What the export is for

The JSON file works as a backup, a handoff, or the starting point for moving requests into a portable text format such as .http. It preserves the collection structure and request definitions, but it does not turn every Postman feature into something another client can run. The rest of this guide covers which values live elsewhere and what to check before you convert or commit the file.

Repeat the export for each collection you want to move. A collection export is not a complete account export and does not automatically bundle every environment used by its requests.

What is usually inside the JSON

A Collection v2.1 export can describe:

  • nested folders and request names;
  • HTTP methods, URLs, query parameters, and headers;
  • raw JSON or text request bodies and URL-encoded form fields;
  • collection variables;
  • supported authentication settings;
  • Postman-specific scripts and tests attached to folders or requests.

The last item matters: JSON can store a Postman script, but a .http client cannot run it. Treat scripts and tests as migration work, not request metadata.

Check the pieces that live outside the collection

Before deleting or reorganizing anything in Postman, make a short inventory:

  • Environment and global variables. Values such as baseUrl or token may be referenced by the collection but stored in a separate Postman environment.
  • Pre-request scripts and tests. Record what each script does. A token generator or assertion needs a deliberate replacement.
  • File-backed request bodies. An export can reference a local file without embedding the file itself.
  • Secrets. Headers, variables, examples, and saved bodies can all contain credentials.

Open the exported JSON in an editor and search for names such as Authorization, token, secret, password, and apiKey. Do not assume a collection is safe to commit just because it came from a developer tool.

Convert the export to .http files

Karve's free Postman collection to .http converter runs in your browser. Drop or paste a v2.0/v2.1 collection export, review the warnings, then copy or download the generated .http file. The conversion does not upload your collection.

The useful parts become readable request blocks:

@baseUrl = https://api.example.com

### List orders
GET {{baseUrl}}/orders
Accept: application/json

Conversion is intentionally conservative. Requests, folders, headers, query parameters, common bodies, variables, and representable auth can move across. Postman scripts, tests, file uploads, unresolved external environment values, and unsupported auth/body modes need manual review. The converter reports those limits instead of pretending the migration is complete.

After conversion, paste the output into the .http file validator and run representative requests against a safe development environment. Karve itself does not import Postman collections; it opens the .http or .rest files produced by the conversion.

Keep the export or keep the result?

Keep the original JSON temporarily as a migration reference. Once the important requests work as .http, the text files are usually the better long-term artifact:

  • ordinary Git diffs instead of a large nested JSON document;
  • readable requests beside the code they exercise;
  • no application account required to open them;
  • compatibility with several editors and clients.

For the full move, follow migrating from Postman to .http files. If you are still choosing a representation, compare Postman collections and .http files.

One-time purchase

Keep your requests as files — give them a workspace.

Karve is a native Windows workspace for the .http files in your repos. $39.99 one-time, with a 15-day free trial.

Black Friday: $9.99 $39.99 until Dec 1 · 15-day free trial · No Karve account · No subscription