# Invoice Generator

> Build invoices and quotes in the browser. Add line items, tax and discounts, then download a clean PDF.

Free invoice generator. Enter your company and client details, add line items, set tax and discounts in any currency, then download a professional PDF invoice or quote. Everything runs locally in the browser — nothing is uploaded.

- Page: https://benchline.fabwaseem.com/t/invoice-generator
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: Company and client details, an invoice or quote number, dates, a currency code, line items with quantities and rates, a tax rate, and an optional percent or flat discount.
- Output: A formatted A4 PDF invoice or quote, with a totals breakdown (subtotal, discount, tax, total).
- Keywords: invoice generator, free invoice maker, quote generator, invoice pdf, billing tool
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Fill in the details.** Add your company and client information, the invoice number, and dates. Everything stays in this browser.
2. **Add line items.** List each item with its quantity and rate, then set a tax rate and an optional percent or flat discount.
3. **Download the PDF.** Preview the totals live, then download a clean A4 PDF invoice or quote.

## Use it from an AI agent

MCP tool name: `generate_invoice`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/invoice-generator with the input as the JSON body
This call does not fetch anything. It runs on the arguments you send.

Build an invoice or quote PDF from company and client details, line items with quantities and rates, a tax rate, and an optional percent or flat discount. All money is computed in integer cents, so there are no float rounding errors. Returns the PDF as base64 plus the total.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "invoice": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "invoice",
            "quote"
          ]
        },
        "number": {
          "type": "string",
          "minLength": 1
        },
        "issueDate": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "dueDate": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Za-z]{3}$"
        },
        "from": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1
            },
            "address": {
              "default": "",
              "type": "string"
            },
            "email": {
              "default": "",
              "type": "string"
            }
          },
          "required": [
            "name",
            "address",
            "email"
          ],
          "additionalProperties": false
        },
        "to": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1
            },
            "address": {
              "default": "",
              "type": "string"
            },
            "email": {
              "default": "",
              "type": "string"
            }
          },
          "required": [
            "name",
            "address",
            "email"
          ],
          "additionalProperties": false
        },
        "items": {
          "minItems": 1,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "description": {
                "type": "string",
                "minLength": 1
              },
              "quantity": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "rate": {
                "type": "number",
                "minimum": 0
              }
            },
            "required": [
              "description",
              "quantity",
              "rate"
            ],
            "additionalProperties": false
          }
        },
        "taxRate": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "discount": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "percent",
                "flat"
              ]
            },
            "value": {
              "type": "number",
              "minimum": 0
            }
          },
          "required": [
            "type",
            "value"
          ],
          "additionalProperties": false
        },
        "notes": {
          "default": "",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "number",
        "issueDate",
        "dueDate",
        "currency",
        "from",
        "to",
        "items",
        "taxRate",
        "discount",
        "notes"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "invoice"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generate_invoice",
    "arguments": {
      "invoice": {
        "kind": "invoice",
        "number": "example",
        "issueDate": "2026-10-18",
        "dueDate": "2026-10-18",
        "currency": "USD",
        "from": {
          "name": "example",
          "address": "",
          "email": ""
        },
        "to": {
          "name": "example",
          "address": "",
          "email": ""
        },
        "items": [
          {
            "description": "example",
            "quantity": 1,
            "rate": 1
          }
        ],
        "taxRate": 1,
        "discount": {
          "type": "percent",
          "value": 1
        },
        "notes": ""
      }
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Is my invoice data uploaded anywhere?

No. Everything runs locally in the browser. Your company and client details, line items, and the generated PDF never leave this tab.

### Can I make quotes as well as invoices?

Yes. Switch the document type to Quote and the header, labels, and totals adjust automatically. The file downloads as a quote PDF.

### Which currencies are supported?

Any ISO currency code such as USD, EUR, GBP, or PKR. Totals are computed in integer cents to avoid rounding errors, then formatted for the currency you picked.

### How are discounts and tax calculated?

The discount is applied to the subtotal first, then tax is charged on the discounted amount. Flat discounts are capped at the subtotal so totals never go negative.

### Does the invoice get a number automatically?

No, you choose the number so it fits your own invoicing scheme — for example INV-0001 or Q-2026-114.

## Related tools

- [Loan EMI calculator](https://benchline.fabwaseem.com/t/loan-emi-calculator): A monthly installment and the full amortization table, rounded to the cent.
- [Merge PDF](https://benchline.fabwaseem.com/t/pdf-merge): Combine PDFs in the browser. Reorder them, keep a page range from each file, and download one document.
- [Percentage calculator](https://benchline.fabwaseem.com/t/percentage-calculator): Percent of, percent change, reverse percent, and margin, with the formula shown.
