# Placeholder image generator

> Generate a placeholder image of any size as a tiny SVG: your colours and label, a data URI to paste into HTML or CSS, and a download.

Free tool by Orkosi. Page: https://orkosi.com/tools/placeholder-image

Fill the image slots of a mockup without calling a third-party image service. Set the size, get an SVG of a few hundred bytes that never breaks and never tracks your visitors.

1. Enter the width and the height.
2. Optionally change the label and the colours.
3. Press Run, then download the SVG or copy the data URI.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `width` | integer | no | Width (px). Default: 1200. |
| `height` | integer | no | Height (px). Default: 630. |
| `text` | text | no | Label. Empty shows the size. |
| `background` | text | no | Background colour. Default: "#E5E7EB". |
| `color` | text | no | Text colour. Default: "#6B7280". |

## Example

Input:

```json
{
  "width": 1200,
  "height": 630,
  "text": "Hero image"
}
```

Result:

```json
{
  "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1200\" height=\"630\" viewBox=\"0 0 1200 630\" role=\"img\" aria-label=\"Hero image\"><rect width=\"100%\" height=\"100%\" fill=\"#E5E7EB\"/><text x=\"50%\" y=\"50%\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"system-ui,-apple-system,Segoe UI,sans-serif\" font-size=\"116\" font-weight=\"600\" fill=\"#6B7280\">Hero image</text></svg>",
  "data_uri": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAwIiBoZWlnaHQ9IjYzMCIgdmlld0JveD0iMCAwIDEyMDAgNjMwIiByb2xlPSJpbWciIGFyaWEtbGFiZWw9Ikhlcm8gaW1hZ2UiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiNFNUU3RUIiLz48dGV4dCB4PSI1MCUiIHk9IjUwJSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiIGZvbnQtZmFtaWx5PSJzeXN0ZW0tdWksLWFwcGxlLXN5c3RlbS…",
  "html": "<img src=\"placeholder.svg\" width=\"1200\" height=\"630\" alt=\"Hero image\">",
  "bytes": 374
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "placeholder-image", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/placeholder-image/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"width":1200,"height":630,"text":"Hero image"}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**Why SVG and not PNG?**

An SVG placeholder is a few hundred bytes at any size and stays sharp on every screen. A 1200 by 630 PNG is thousands of times heavier.

**How do I use the data URI?**

Paste it as the src of an img tag or inside url() in CSS. The image then travels inside the page and needs no extra request.

**Can I use it as a social share image?**

No. Social networks need a PNG or a JPG for og:image. Use the OG image maker for that.

All free tools: https://orkosi.com/tools.md
