Skip to main content

Design Customization

Customize the appearance of your QR codes with colors, styles, and logos.

Try the Design Builder

Use the interactive Design Builder to experiment with styles and colors in real time, then copy the JSON directly into your API calls.

Design Object

Pass the design parameter when creating or updating a QR code.

Fields Reference

FieldTypeDescription
dotsobjectMain dot pattern styling
cornersobjectCorner square marker styling
corners_dotobjectInner corner dot styling
backgroundobjectBackground color
logo_urlstringURL to a logo image to embed in the center
marginnumberMargin around the QR code in pixels (default: 10)

Design Object

{
"design": {
"dots": { "style": "rounded", "color": "#000000" },
"corners": { "style": "extra-rounded", "color": "#000000" },
"corners_dot": { "style": "dot", "color": "#000000" },
"background": { "color": "#ffffff" },
"logo_url": "https://example.com/logo.png",
"margin": 10
}
}

Dots

The main pattern dots that make up the QR code.

FieldTypeDescription
stylestringDot style (see options)
colorstringHex color code (e.g., #000000)

Available styles:

  • square — Square dots (default)
  • rounded — Rounded square dots
  • dots — Circular dots
  • classy — Classy rounded style
  • classy-rounded — Extra rounded classy
  • extra-rounded — Very rounded squares

Corners

The large corner markers of the QR code.

FieldTypeDescription
stylestringsquare, extra-rounded, or dot
colorstringHex color code

Corner Dots

The inner dots of the corner markers.

FieldTypeDescription
stylestringsquare or dot
colorstringHex color code

Background

FieldTypeDescription
colorstringBackground hex color (default: #ffffff)

Example: Branded QR Code

curl -X POST "https://integration-api.qr-build.com/qr-codes" \
-H "X-API-Key: qrb_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Branded QR",
"type": "url",
"content": {
"type": "url",
"url": "https://example.com"
},
"design": {
"dots": { "style": "rounded", "color": "#6366f1" },
"corners": { "style": "extra-rounded", "color": "#4f46e5" },
"corners_dot": { "style": "dot", "color": "#4f46e5" },
"background": { "color": "#f8fafc" },
"margin": 12
}
}'

Best Practices

  1. Maintain contrast — Ensure enough contrast between dots and background for reliable scanning
  2. Test scanning — Always test your QR codes with multiple devices after customizing
  3. Keep it simple — Complex designs may reduce scan reliability
  4. Logo size — Keep logos small to maintain scanability
tip

To control the output image size and format, use the Generate QR Code Image endpoint with size and format query parameters.

Image Export Options

# PNG (default, 300px)
GET /qr-codes/:id/image

# SVG (scalable, ideal for print)
GET /qr-codes/:id/image?format=svg

# High-res PNG (up to 3000px)
GET /qr-codes/:id/image?format=png&size=2000

# JPG (smaller file size)
GET /qr-codes/:id/image?format=jpg&size=1000