Skip to main content

HAR to Postman Collection Converter

Convert a HAR (HTTP Archive) file into a Postman Collection v2.1 — grouped by host or path, with cookie/auth cleanup and a promoted {{baseUrl}} variable.

Input

Drop a file or browse
One file · text
Or

Collection Options

Filters

Cleanup

Output

Summary
MetricValue
No data yet
Postman Collection (v2.1)
 
Was this helpful?

Guides

What does this tool do?

It converts a HAR (HTTP Archive) network capture into a Postman Collection (schema v2.1) — ready to import directly into Postman, complete with folders, example responses, and reusable variables.

How this tool works

  1. Paste HAR JSON into the input box, or upload a .har file.
  2. Name your collection and choose how to group requests: by hostname (one folder per domain), by first path segment (one folder per API area, e.g. /users, /orders), or as a flat list.
  3. Optionally filter by search term, method, status class, or content type before converting.
  4. Configure cleanup: strip Cookie headers, replace Authorization values with a {{token}} variable, strip HTTP/2 pseudo-headers, and promote each request's scheme + host into a shared {{baseUrl}} collection variable.

The Summary shows how many requests were included and which base URL (if any) was promoted to a variable. The Postman Collection output is ready to save as .json and import straight into Postman, Insomnia, or any tool that reads the v2.1 collection format.

Why promote a {{baseUrl}} variable

Hardcoding the full URL into every request means switching environments (staging vs. production) requires editing every single request. Promoting the most common scheme://host combination in your capture to a {{baseUrl}} collection variable lets you swap environments by changing one value — the standard Postman pattern for environment-portable collections.

Example responses

Each converted request includes its captured response as a saved example — status code, headers, and body — so opening the collection in Postman shows you not just what was sent, but what came back, without needing to replay the request.

Common uses

  • Turning a captured browser session into a reusable Postman collection for API testing
  • Documenting an undocumented API by capturing real traffic and converting it
  • Sharing a working set of API calls with a teammate who prefers Postman over raw HAR
  • Building a starter collection for a new integration from real recorded requests

Privacy

This tool runs entirely in your browser. Your HAR file is never uploaded to a server.

harhttp archivepostmanapideveloper

Use it from code

From 3 credits per call

REST API

curl -X POST https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "harInput": "{\n  \"log\": {\n    \"version\": \"1.2\",\n    \"entries\"…",
    "collectionName": "My API",
    "grouping": "host",
    "filterSearch": "",
    "filterMethod": "any",
    "filterStatus": "any",
    "filterType": "any",
    "stripCookies": "true",
    "stripAuth": "true",
    "stripPseudo": "true",
    "promoteVars": "true"
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `har-to-postman-collection-converter` tool (HAR to Postman Collection Converter) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.