How to Use AnyPlaceholder.com
AnyPlaceholder.com lets designers and developers create custom placeholder images and text on-the-fly. You can use our browser UI or call the simple REST APIs directly from your code.
1. Using the Web UI
- Open the Image Generator or Text Generator.
- Adjust the parameters to your needs.
- Copy the generated URL or download/copy the result.
2. Using the HTTP API
Make a GET request to /placeholder with the query parameters below.
| Parameter | Required | Description | Example |
|---|---|---|---|
| width | Yes | Image width (px) | 300 |
| height | Yes | Image height (px) | 200 |
| bg | No | Background color (hex, no #). For 4 or 8 digits, the last digit(s) represent alpha value (0-f, 00-ff) | 09f or 0099ff or 09f8 (semi-transparent) |
| color | No | Text color (hex, no #). For 4 or 8 digits, the last digit(s) represent alpha value (0-f, 00-ff) | fff or fffc (semi-transparent) |
| text | No | Custom text. Defaults to "{width}x{height}" | Hello |
| fontSize | No | Font size (px) | 24 |
| radius | No | Corner radius (px) | 8 |
| format | No | Output format: svg (default) / png / jpg / webp | png |
| retina | No | If set to 1, creates a @2x image | 1 |
Example
https://anyplaceholder.com/placeholder?width=400&height=300&bg=333&color=fff&text=Demo&format=png
3. Text Placeholder API
Make a GET request to /text with the query parameters below.
| Parameter | Required | Description | Example |
|---|---|---|---|
| paragraphs | No | Number of paragraphs (1-50, default 3) | 5 |
| sentences | No | Sentences per paragraph (1-15, default 5) | 3 |
| format | No | Output format: text (default) / html / json | json |
| lang | No | Language: en (default) / ja | ja |
| startWithLorem | No | Start with "Lorem ipsum..." (default true) | false |
| random | No | Randomize output (disables caching) | true |
Examples
https://anyplaceholder.com/text?paragraphs=3&sentences=5
https://anyplaceholder.com/text?paragraphs=2&format=html&lang=ja
https://anyplaceholder.com/text?paragraphs=1&sentences=3&format=json
4. Attribution / License
Generated images are free to use, even in commercial projects. No attribution required, but a backlink is appreciated.
5. Need Help?
Contact us on X (Twitter) @_Kit_Ok_ or use the Buy Me a Coffee link below.