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

  1. Open the Image Generator or Text Generator.
  2. Adjust the parameters to your needs.
  3. 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.

ParameterRequiredDescriptionExample
widthYesImage width (px)300
heightYesImage height (px)200
bgNoBackground 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)
colorNoText color (hex, no #). For 4 or 8 digits, the last digit(s) represent alpha value (0-f, 00-ff)fff or fffc (semi-transparent)
textNoCustom text. Defaults to "{width}x{height}"Hello
fontSizeNoFont size (px)24
radiusNoCorner radius (px)8
formatNoOutput format: svg (default) / png / jpg / webppng
retinaNoIf set to 1, creates a @2x image1

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.

ParameterRequiredDescriptionExample
paragraphsNoNumber of paragraphs (1-50, default 3)5
sentencesNoSentences per paragraph (1-15, default 5)3
formatNoOutput format: text (default) / html / jsonjson
langNoLanguage: en (default) / jaja

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. Avatar API

Make a GET request to /api/avatar to generate an avatar image from the text you provide.

ParameterRequiredDescriptionExample
textNoText shown as-is, max 12 characters (default "AP")JD
sizeNoImage size in px (16-1000, default 128)128
shapeNoAvatar shape: circle (default) / squarecircle
bgNoBackground color (hex, no #). Defaults to a color auto-derived from the text4f46e5
colorNoText color (hex, no #, default fff)fff
formatNoOutput format: svg (default) / pngpng

Example

https://anyplaceholder.com/api/avatar?text=JD&size=128&shape=circle&format=png

5. Dummy Data API

Make a GET request to /api/data to generate dummy data as JSON or CSV.

ParameterRequiredDescriptionExample
typeNoDataset type: users (default) / posts / todos / productsusers
countNoNumber of records (1-100, default 10)10
langNoLanguage: en (default) / jaja
formatNoOutput format: json (default) / csvjson
seedNoSeed for deterministic output (default 1)1

Example

https://anyplaceholder.com/api/data?type=users&count=10&lang=ja&format=json

6. Chart API

Make a GET request to /api/chart to generate a bar, line, or pie chart image.

ParameterRequiredDescriptionExample
typeNoChart type: bar (default) / line / piebar
pointsNoNumber of data points (2-20, default 6)8
widthNoImage width in px (100-2000, default 600)600
heightNoImage height in px (100-2000, default 400)400
seedNoSeed for deterministic output (default 1)1
titleNoChart title (optional)Sales
formatNoOutput format: svg (default) / png. PNG output is capped at 1000px to stay within size limitssvg

Example

https://anyplaceholder.com/api/chart?type=bar&points=8&title=Sales&format=svg

7. PDF API

Make a GET request to /api/pdf to generate a multi-page dummy PDF.

ParameterRequiredDescriptionExample
pagesNoNumber of pages (1-20, default 1)3
titleNoDocument title (default "Dummy PDF"). ASCII/Latin characters only — the built-in Helvetica font cannot embed JapaneseSample

Note: The title supports ASCII/Latin characters only. The built-in Helvetica font cannot embed Japanese (or other non-Latin) characters.

Example

https://anyplaceholder.com/api/pdf?pages=3&title=Sample

8. Map API

Make a GET request to /api/map to generate an image of a fictional city. Maps are pre-rendered in 10 visual styles and resized to your requested dimensions on the fly.

ParameterRequiredDescriptionExample
widthNoImage width in px (100-2000, default 600)800
heightNoImage height in px (100-2000, default 400)600
seedNoSeed for deterministic output — picks one of 50 fictional cities per style (default 1)42
schemeNoVisual style. Omit to auto-pick from the seed. One of: Default, Apple, AppleDark, Assassin, Google, GoogleNoZoom, Paper, SubtleGrey, UltraLight, WyApple
formatNoOutput format: jpg (default, smallest) / webp / pngjpg

This map is decorative only — every city is fictional and does not represent any real location.

Example

https://anyplaceholder.com/api/map?width=800&height=600&seed=42&scheme=Apple

Map images are pre-generated with ProbableTrain's MapGenerator (LGPL-3.0 / GPL-3.0).

9. Notes for All Endpoints

A few things that apply to every API above:

10. Attribution / License

Generated images are free to use, even in commercial projects. No attribution required, but a backlink is appreciated.

11. Need Help?

Contact us on X (Twitter) @_Kit_Ok_ or use the Buy Me a Coffee link below.