60 multilingual fonts, 5000+ icons, 9 image formats (SVG, PNG, JPEG, WebP, AVIF), gradient textures, text highlighting — every parameter can be previewed in real time
—1/201/101/81/61/51/41/31/10,1/201/4,1/2040,10,5,1020,10,20,605000+ Tabler Icons with Outline and Filled styles, customizable size
Complete API parameter reference, text highlighting guide, and icon-only display mode
Use {{...}} in the text parameter to wrap the parts you want highlighted. All highlighted segments share the same style. Tip: You can also type {{...}} directly in the Text Content input above — the system will detect and apply highlights automatically.
hlcolor
Highlight Color
Sets the highlight color. Supports HEX format (e.g., FF5733) or color names (e.g., red).
?text=Mock{{Img}}.Dev&hlcolor=FF5733
hlcolor2
Highlight Gradient Color 2
Sets the second color for gradient highlight. Setting this automatically enables gradient effect, with hlcolor as the start color.
?text={{Hello}}&hlcolor=EC4899&hlcolor2=8B5CF6
hlgradient
Highlight Gradient Direction
Sets the gradient direction. Defaults to horizontal when not set.
horizontal Horizontal (left to right)
vertical Vertical (top to bottom)
diagonal Diagonal (top-left to bottom-right)
?text={{Hello}}&hlcolor=EC4899&hlcolor2=8B5CF6&hlgradient=vertical
hlfont
Highlight Font
Specifies an independent font for highlighted text. The value is the font file name (without the .ttf extension).
?text={{Brand}}&hlfont=Poppins-Bold
hlbold
Highlight Bold
Makes highlighted text bold. Value: true or 1.
?text={{Important}}&hlbold=true
https://mockimg.dev/600x400.png?text=Mock{{Img}}.Dev&hlcolor=FF5733
Effect:"MockImg.Dev" — Img shown in red
https://mockimg.dev/600x400.png?text={{Gradient}}&hlcolor=EC4899&hlcolor2=8B5CF6
Effect: "Gradient" shown in pink-to-purple horizontal gradient
https://mockimg.dev/600x400.png?text={{MockImg}}&hlfont=Poppins-Bold&hlcolor=3B82F6
Effect: "MockImg" shown in blue with Poppins-Bold font
https://mockimg.dev/600x400.png?text={{Important}}&hlbold=true&hlcolor=EF4444
Effect: "Important" shown in red and bold
https://mockimg.dev/600x400.png?text={{Premium}}&hlcolor=FFD700&hlcolor2=FF6B6B&hlgradient=diagonal&hlfont=Montserrat-Bold
Effect: "Premium" shown with diagonal gradient (gold to red) in Montserrat-Bold font
https://mockimg.dev/600x400.png?text={{MockImg}}+和+{{占位图}}&hlcolor=3B82F6
Effect: Both "MockImg" and placeholder text shown in blue (shared highlight style)
https://mockimg.dev/600x400.png?text={{MockImg}}+占位图服务&hlcolor=10B981
Effect: "MockImg" shown in green, remaining text uses default color
https://mockimg.dev/600x400.png?theme=dark&text=Dark+{{Mode}}&hlcolor=FBBF24
Effect: In dark theme, "Mode" shown in gold highlight
{{...}} markers are not counted in text width calculations and do not affect layout{{...}} markers are not supported — inner markers are treated as plain texthl* style settings\n for line breaks)icon parametertext parameter, or text is emptyAuto: icon size = 80% of the smaller image dimension (min 24px, max 90%)
Custom: use iconsize parameter to override auto calculation
https://mockimg.dev/600x400.png?icon=outline/heart&iconcolor=FF5733
Effect: Heart icon auto-enlarged and centered in red
https://mockimg.dev/600x400.png?icon=filled/star&iconcolor=FFD700&iconcolor2=FF6B6B&icongradient=diagonal
Effect: Star icon with gold-to-red diagonal gradient
https://mockimg.dev/200x200.png?icon=outline/user&iconcolor=3B82F6&bg=transparent
Effect: User icon on transparent background — perfect for avatars
https://mockimg.dev/600x400.png?icon=outline/heart&iconcolor=FFFFFF&gradient=horizontal&bgcolor2=EC4899&radius=20
Effect: White heart icon on pink gradient with rounded corners
https://mockimg.dev/600x400.png?icon=filled/star&iconcolor=FFD700&theme=dark
Effect: Gold star icon on dark background
https://mockimg.dev/400x400.png?icon=outline/user&iconcolor=3B82F6&radius=200&border=4&bordercolor=3B82F6
Effect: User icon in circle with border — ideal for avatar placeholders
| Mode | URL | Effect |
|---|---|---|
| Icon-Only (no text) | ?icon=outline/heart |
Icon auto-enlarged and centered, no text |
| Icon + Empty Text | ?icon=outline/heart&text= |
Same as icon-only |
| Icon + Text | ?icon=outline/heart&text=Love |
Icon and text side by side (original behavior) |
| No Icon No Text | 600x400.png |
Dimension text (default behavior) |
iconcolor, iconcolor2, icongradient, iconsize) work as expected32x32.ico?icon=filled/star&iconcolor=FFD700The padding parameter controls the whitespace around text and icons inside the placeholder image. It supports 4 formats: single pixel value, single ratio, two-value (vertical + horizontal), and four-value (CSS-style clockwise).
When padding is not provided, built-in defaults are used (consistent with previous versions):
20
Single Pixel Value
All four sides use the same pixel value.
padding=20
1/6
Single Ratio Value
All four sides use a ratio. Top/Bottom based on image height, Left/Right based on image width. Results are automatically rounded.
padding=1/6 → 600×400 → top/bottom 67px, left/right 100px 10,20
Two Values (Vertical + Horizontal)
Control vertical and horizontal padding separately. Pixel and ratio values can be mixed.
padding=10,20 → top/bottom 10px, left/right 20pxpadding=1/8,15 → top/bottom = height/8, left/right 15pxpadding=30,1/10 → top/bottom 30px, left/right = width/10 10,20,30,40
Four Values (CSS Clockwise)
CSS-style independent control: Top, Right, Bottom, Left. Top/Bottom based on image height, Left/Right based on image width. Pixel and ratio can be mixed.
padding=10,20,30,40 → top 10, right 20, bottom 30, left 40 (all px)padding=1/8,1/6,15,1/10 → top h/8, right w/6, bottom 15px, left w/10 (mixed) https://mockimg.dev/480x200.svg?text=IP&bold=true&padding=1/10
Short text like "IP" with padding=1/10 for a more compact layout.
https://mockimg.dev/600x400.svg?text=Full&padding=0
Set padding=0 to fill the entire image area with content.
https://mockimg.dev/600x400.svg?icon=outline/heart&text=Love&padding=1/8
Icon and text side by side with moderate padding.
https://mockimg.dev/600x300.svg?text=Title&padding=40,10,5,10
Large top padding creates a title area feel, bottom is compact.
https://mockimg.dev/800x400.svg?text=Content&padding=20,10,20,60
Large left padding to accommodate a left navigation bar.