Postman Collection Generator

Build a ready-to-import Postman Collection (v2.1) from endpoints, auth, variables, and request bodies.

Collection Info

Variables

Reference as {{key}}
Key Value

Authentication

Requests

2
GET
Headers
Body
POST

Collection JSON

1.9 KB
{
  "info": {
    "_postman_id": "00000000-0000-0000-0000-000000000000",
    "name": "My API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "A sample API collection generated with DevToolEasy."
  },
  "item": [
    {
      "name": "List Users",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/users?page=1",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "users"
          ],
          "query": [
            {
              "key": "page",
              "value": "1"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "Create User",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/users",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "users"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": []
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.example.com",
      "type": "string"
    },
    {
      "key": "token",
      "value": "YOUR_TOKEN_HERE",
      "type": "string"
    }
  ]
}

Import into Postman

  1. Click Download to save the .postman_collection.json file.
  2. In Postman, open File → Import (or the Import button).
  3. Drop the file in, or paste the copied JSON as raw text.
  4. Your requests, variables, and auth appear ready to send.

About Postman Collection Generator

The Postman Collection Generator is a free, browser-based tool that turns your endpoint definitions into a valid Postman Collection (schema v2.1.0) JSON file. Instead of clicking through Postman's UI to recreate every request, you describe your API once — name, base URL variables, authentication, headers, and request bodies — and the tool produces an import-ready file you can share with your team or commit to version control. Everything runs locally in your browser, so your tokens and endpoints never leave your machine.

How to Use Postman Collection Generator

  1. Set your collection name and an optional description.
  2. Add variables such as {{baseUrl}} and {{token}} that requests can reuse.
  3. Choose an authentication type — Bearer, Basic, or API Key — applied at the collection level.
  4. Add each request with a method, URL, headers, and an optional JSON or raw body.
  5. Watch the Collection JSON preview update live on the right.
  6. Copy or download the file, then import it into Postman.

Features

Schema v2.1.0

Outputs the current Postman Collection format used by recent Postman versions.

Collection Variables

Define reusable {{key}} values for base URLs, tokens, and IDs.

Auth Helpers

Bearer, Basic, and API Key auth generated with the correct field structure.

Smart URL Parsing

URLs split into protocol, host, path, and query exactly as Postman expects.

Per-Request Bodies

Attach JSON or raw bodies with the right language hint for Postman.

Private by Design

All generation happens client-side — nothing is uploaded.

Common Use Cases

  • Scaffolding a Postman collection for a new API without manual clicking
  • Sharing a ready-to-import request set with teammates or clients
  • Generating collections from documentation during onboarding
  • Versioning API request definitions in Git as JSON
  • Creating consistent collections across multiple environments via variables
  • Quickly prototyping endpoints before building client code

FAQ

Which Postman Collection version does this generate?

It produces Collection Schema v2.1.0, the format used by current Postman desktop and web apps. You can import it directly with File → Import.

Is my data sent anywhere?

No. The entire collection is built in your browser. Your URLs, tokens, and bodies are never transmitted or stored on a server.

How do collection variables work?

Variables you add are written to the collection's variable array. Reference them anywhere using the {{key}} syntax, and Postman resolves them at request time.

Can I import the result back into Postman?

Yes. Download the .postman_collection.json file and use Postman's Import button, or paste the copied JSON as raw text.

Does the auth apply to every request?

Yes. Authentication is set at the collection level, so each request inherits it unless you override auth on a specific request inside Postman.

How are query parameters handled?

Anything after a ? in the URL is parsed into Postman's structured query array, while the host and path are split automatically so the request displays correctly.