Hoppscotch Import and Export Formats: The Practical Guide
Quick answer: Hoppscotch accepts imports from five sources, its own format, Postman, Insomnia, OpenAPI, and HTTP Archive, plus a cURL path for a single request. On the way out it writes its own collection or environment JSON, a GitHub Gist, or an OpenAPI 3.1 document. None of these conversions is lossless, because scripts and advanced auth often do not survive, so the native Hoppscotch JSON is the only format that faithfully backs up a working collection.
The import matrix
The official importer covers the sources below. The size cap depends on the edition: Hoppscotch Cloud rejects a collection over 10 MB, while a self-hosted instance allows up to 50 MB.
| Source | Collections | Environments | Main loss |
|---|---|---|---|
| Hoppscotch | Yes | Yes | Native format, lowest loss |
| Postman | Yes | Yes | Scripts only on an experimental, opt-in basis |
| Insomnia | Yes | Yes | Scripts and tests do not come through |
| OpenAPI | Yes | No | Request bodies, scripts, and tests are dropped |
| HTTP Archive | Yes | No | Only headers and body content survive |
cURL sits outside this matrix. Pasting a command into the URL bar, or choosing Import cURL from the send menu, builds one request from that command. It is a quick way to recreate a single call you copied from a log, not a tool for moving an entire collection.
What gets dropped on the way in
The matrix hides how uneven the conversions are. Query parameters map to request parameters and path parameters map to request variables across the importers, and basic authorization, headers, and response examples usually survive. The trouble starts with anything that encodes behavior.
When you bring in a Postman collection at v2.0 or v2.1, pre-request and test scripts are treated as experimental. You are asked to consent before they run through a compatibility layer, and advanced authorization plus collection-level settings are not imported at all. Insomnia is stricter: its scripts, tests, and advanced auth are skipped, and only regular environment variables cross over, not the secret ones. OpenAPI carries no environment and loses request bodies along with scripts, so a spec that documents an API does not rebuild the requests that exercise it. A HAR file is the narrowest of all, useful for reconstructing calls from a browser recording but carrying no assertions or surrounding metadata.
Treat every imported collection as a first draft. Re-enter the auth, reattach the scripts, and run a few requests against a real environment before you trust the result.
What you can export
Export is narrower than import and is not symmetric. A collection or environment can be saved as a Hoppscotch JSON file, published to a GitHub Gist, or, since v2026.5.0, written out as an OpenAPI 3.1 document. There is no official export that produces a native Postman collection. Postman can read a Hoppscotch file through its own migration path, but that is Postman doing the parsing, not Hoppscotch emitting Postman's format.
Choose by where the data is going. The Hoppscotch JSON keeps your folder structure, variables, and scripts intact, which makes it the right choice for backups and for moving between two Hoppscotch instances. A Gist is a plain-text way to share a collection or environment through a URL. The OpenAPI 3.1 export is for feeding code generators, validators, and documentation portals that expect a spec rather than a runnable request set.
Why a round trip loses data
Importing a spec and exporting one are not mirrors. If you import OpenAPI, the bodies and scripts that were dropped do not reappear when you export OpenAPI 3.1 later; the export can only describe what the collection now holds. The native JSON is the only path that preserves behavior across a move. If you keep tests alongside a spec, note that Powerduck also imports an OpenAPI file but keeps scenario tests outside the document, never writing them into the spec, and importing the definition does not deploy the backend.
For the broader comparison and where each tool fits, see the Hoppscotch comparison hub.
Frequently asked questions
Which format best backs up a Hoppscotch collection? The native Hoppscotch JSON. It preserves folders, variables, and scripts, while OpenAPI and HAR drop behavior during conversion.
Can I export directly to a Postman collection? Not as a native Postman format. Postman can import a Hoppscotch file through its own migration flow, but Hoppscotch itself does not emit one.
Do my environments move with an OpenAPI import? No. OpenAPI and HAR carry no environments, so export and import those separately through the Hoppscotch, Postman, or Insomnia environment path.
The bottom line
Match the format to the job instead of assuming they are interchangeable. Reach for the Hoppscotch JSON when you cannot afford to lose scripts or variables, use OpenAPI 3.1 only when a downstream tool needs a spec, and verify every imported collection by hand. A wide import list is convenient, but it does not make any of these moves lossless.