Code to Image

greet.ts
1export function greet(name: string): string {
2 return `Hello, ${name}!`;
3}
4 
5const users = ['Alice', 'Bob', 'Carol'];
6users.map(greet).forEach(console.log);
156 / 8,000
API call
curl -X POST https://quillly.com/tools/code-to-image/api/generate \
  -H 'Content-Type: application/json' \
  -d '{
  "code": "export function greet(name: string): string {\n  return `Hello, ${name}!`;\n}\n\nconst users = ['\''Alice'\'', '\''Bob'\'', '\''Carol'\''];\nusers.map(greet).forEach(console.log);",
  "language": "typescript",
  "theme": "tokyo-night",
  "title": "greet.ts",
  "windowControls": true,
  "lineNumbers": true,
  "padding": 48,
  "width": 900,
  "background": "linear-gradient(135deg,#b9502a,#f59e0b)"
}'

Frequently Asked Questions

Where is my code processed?

Entirely in your browser. Nothing is uploaded to a server, so your code never leaves your device.

Which format is best for sharing?

PNG works everywhere — social posts, Slack, docs, and slides. Use a transparent background when you plan to place the snippet on a colored surface.

Can I use the images commercially?

Yes. The images you export are yours to use anywhere, including client work and paid content.

Which languages get syntax highlighting?

The common ones, including JavaScript, TypeScript, Python, Go, Rust, HTML, CSS, JSON, and SQL.

For developer content

Write a technical blog? Generate code cards automatically.

Quillly's MCP server lets your AI create technical blog posts with Carbon-style code screenshots for every snippet — styled, themed, and published to your domain.