SVG QR Code API
Generate qr codes as SVG images with ChartQuery's API. Infinitely scalable vector format for web, print, and high-resolution output. Send a request, get a SVG file back in milliseconds. No frontend library required.
Live Preview
This image is generated in real time by the ChartQuery API, no static assets.
Quick Start
A single HTTP request is all you need. No SDK, no dependencies.
curl -X POST https://api.chartquery.com/v1/qrcode \
-H "Content-Type: application/json" \
-d '{
"data": "https://www.example.com",
"size": 300,
"format": "svg",
"dot_type": "rounded",
"ec_level": "H"
}' \
--output qrcode.svgHow It Works
Send a Request
POST a JSON body or use GET with query parameters. No SDK or library needed.
Get Your Image
ChartQuery renders your chart, diagram, barcode, QR code, or label and returns it as PNG or SVG.
Use It Anywhere
Embed in emails, PDFs, dashboards, documents, or print directly. Works everywhere images work.
Features
SVG Output
Infinitely scalable vector format for web, print, and high-resolution output. Every response returns a valid SVG file ready to use, no post-processing needed.
Sub-500ms Response
Charts, diagrams, barcodes, and labels render in under 500ms. Get your SVG file back before the next line of code runs.
No Dependencies
No rendering library, no headless browser, no canvas. A single HTTP request returns a SVG image. Works from any language or platform.
Pixel-Perfect at Any Size
SVG output is infinitely scalable. Zoom to any size without pixelation, perfect for print and retina displays.
Use Cases
- Embed scalable charts in responsive web pages
- Generate print-quality diagrams for technical documentation
- Create resolution-independent barcode images for packaging
- Use vector QR codes on marketing materials and business cards
Frequently Asked Questions
How do I generate qr codes as SVG with an API?
Send a request to the ChartQuery qrcode endpoint with format: "svg" in your JSON body (POST) or as a query parameter (GET). The API returns a SVG file directly in the response body. No API key is required for basic usage.
Why choose SVG over other output formats?
Infinitely scalable vector format for web, print, and high-resolution output. SVG files are also smaller than raster formats and can be styled with CSS when embedded in HTML.
What is the maximum resolution for SVG output?
SVG is a vector format, so resolution is infinite. The output scales to any size without quality loss.
Is the SVG qr codes API free?
Yes. Anonymous access gives you 60 requests per hour without an API key. A small watermark is added to free-tier output. Paid plans remove the watermark and increase rate limits.
Can I embed SVG qr codes in emails and documents?
SVG can be embedded directly in HTML pages and some email clients, but many email clients (Gmail, Outlook) strip SVG. Use PNG for email embedding.
What content type does the API return for SVG?
The API returns image/svg+xml in the Content-Type header. The response body is the raw SVG file data, ready to save to disk or stream to the client.
Start generating charts today
No API key required to get started. Generate charts, diagrams, and more with a single HTTP request.
Get StartedView Pricing