---
canonical: 'https://htmlcsstoimage.com/templates/playground?preset=GKXjcdxX'
title: 'Template Editor: Start with Coupon Code Badge Instagram Post (Square) Template'
description: 'Customize the Coupon Code Badge Instagram Post (Square) Template in the HTML/CSS to Image template editor, then save it for API image generation.'
---

# Template Editor: Start with Coupon Code Badge Instagram Post (Square) Template

Customize the Coupon Code Badge Instagram Post (Square) Template in the HTML/CSS to Image template editor, then save it for API image generation.

The HTML/CSS to Image API (HCTI) creates images, PDFs, and website screenshots from HTML/CSS, live URLs, or reusable templates. It also supports visual template editing, automated Open Graph images, signed image URLs, batch rendering, direct-to-storage output, and an OAuth-connected MCP server for AI agents.

The template playground is the browser-based visual editor for reusable image templates: configure the canvas, compose blocks, add variables, preview placeholder values, and save the result for rendering through the API.

## What you can do

- Build layouts from text, images, shapes, panels, and other reusable blocks.
- Define variables for content and styling that changes between renders.
- Preview the template with realistic values before saving it.
- Render saved templates through the HTML/CSS to Image API.

## Loaded preset

[Coupon Code Badge](https://htmlcsstoimage.com/templates/details/coupon-code-badge/instagram-post-square.md)

## Template details

- **Preset:** Coupon Code Badge
- **Variation:** Instagram Post (Square)
- **Size:** Instagram Post (Square)
- **Categories:** E-Commerce, Promotional
- **Types:** Badge

## Examples

![Coupon Code Badge preview](<https://content-images.htmlcsstoimage.com/media-assets/6166d3344b9e21f8be6961927b795ee034aa0467141fdc96256d64730eae80d8/example-image-019ef56b-6ddb-7e74-80ba-e86f685b5a2a.png?v=auto&iv=2>)

Example variable values:

```json
{
  "code": "HELLO15",
  "label": "Member Deal",
  "expires": "Valid through Sunday",
  "discount": "15% OFF"
}
```

## Similar templates to try

- [Flash Sale Post](https://htmlcsstoimage.com/templates/details/flash-sale-post.md): A direct sale post for product discounts and limited-time offers.
- [Online Shop Sale Banner](https://htmlcsstoimage.com/templates/details/online-shop-sale-banner.md): Create a wide sale banner for ecommerce campaigns, storefront hero images, seasonal promotions, and email graphics.
- [New Arrivals Product Grid](https://htmlcsstoimage.com/templates/details/new-arrivals-product-grid.md): Feature multiple products in one square layout for new arrivals, seasonal bundles, shop updates, and product launches.
- [Event Pass Badge](https://htmlcsstoimage.com/templates/details/event-pass-badge.md): Design a printable badge or pass for speakers, attendees, staff, VIP guests, and event check-in materials.
- [Island Escape Deal](https://htmlcsstoimage.com/templates/details/island-escape-deal.md): Promote a trip package, flight offer, resort deal, or limited-time travel campaign with a bold product-forward social post.
- [Runway Drop Announcement](https://htmlcsstoimage.com/templates/details/runway-drop-announcement.md): Build anticipation for a new fashion collection, runway preview, boutique launch, or seasonal product drop.

## Get started

- [View the full page](https://htmlcsstoimage.com/templates/playground?preset=GKXjcdxX)
- [Browse templates](https://htmlcsstoimage.com/templates.md)
- [Open the template playground](https://htmlcsstoimage.com/templates/playground.md)
- [Learn how the visual template editor works](https://htmlcsstoimage.com/features/template-editor.md)
- [Read the template API documentation](https://docs.htmlcsstoimage.com/getting-started/templates/)

Rendering or saving a template requires authenticated HTML/CSS to Image API credentials. Keep API keys in trusted server-side configuration. If credentials are not available, ask the user to configure an API key securely, then follow the template API documentation.
