{"$schema":"https://toolsly.tools/schemas/tool-manifest-v1.json","generated":"2026-05-20T20:47:38.026Z","discovery":{"catalog":"https://toolsly.tools/tools.json","llmsTxt":"https://toolsly.tools/llms.txt","sitemap":"https://toolsly.tools/sitemap.xml"},"relatedTools":[{"slug":"image-to-text","name":"Image to Text (OCR)","url":"https://toolsly.tools/image-to-text"},{"slug":"colors-from-image","name":"Colors from Image","url":"https://toolsly.tools/colors-from-image"},{"slug":"image-to-base64","name":"Image to Base64","url":"https://toolsly.tools/image-to-base64"},{"slug":"qr-code-reader","name":"QR Code Reader","url":"https://toolsly.tools/qr-code-reader"},{"slug":"base64-to-image","name":"Base64 to Image","url":"https://toolsly.tools/base64-to-image"},{"slug":"image-cropper","name":"Image Cropper","url":"https://toolsly.tools/image-cropper"},{"slug":"png-cropper","name":"PNG Cropper","url":"https://toolsly.tools/png-cropper"},{"slug":"image-to-grayscale","name":"Image to Grayscale","url":"https://toolsly.tools/image-to-grayscale"}],"kind":"converter","slug":"code-to-image","name":"Code to Image","description":"Render a code snippet as a beautiful PNG screenshot — themes, padding, window controls.","longDescription":"Drop in a source file — JavaScript, TypeScript, Python, HTML, CSS, JSON, Markdown, Rust, Go, Java, C#, or any plain-text file — and download a polished PNG of the snippet, the way you'd want to share it on Twitter, in a blog post or in a slide. Pick a theme (Dark, Light, Solarized, Dracula), adjust the padding, optionally show the macOS traffic-light window controls at the top, and the snippet gets a minimal syntax highlight pass (strings, keywords, numbers, comments — no full language server, just the obvious tokens). Rendering runs locally in your browser using html2canvas-pro; nothing is uploaded. Best for short snippets — very long files produce very tall images.","category":"image","categoryName":"Image","keywords":["code to image","carbon online","code screenshot","snippet to image","render code as image","beautiful code screenshots","code to png","code image generator","snippet screenshot generator","code to picture","carbon now alternative","share code as image","code snippet to image"],"url":"https://toolsly.tools/code-to-image","runsOn":"client","multiple":false,"batch":false,"input":{"type":"file","extensions":[".txt",".js",".ts",".jsx",".tsx",".py",".html",".css",".json",".md",".rs",".go",".java",".cs"],"mimeTypes":["text/plain",""]},"output":{"type":"file","extension":".png","mimeType":"image/png"},"options":[{"type":"select","key":"theme","label":"Theme","defaultValue":"dark","choices":[{"value":"dark","label":"Dark"},{"value":"light","label":"Light"},{"value":"solarized","label":"Solarized"},{"value":"dracula","label":"Dracula"}]},{"type":"select","key":"language","label":"Language","defaultValue":"plain","choices":[{"value":"plain","label":"Plain text"},{"value":"javascript","label":"JavaScript"},{"value":"typescript","label":"TypeScript"},{"value":"python","label":"Python"},{"value":"html","label":"HTML"},{"value":"css","label":"CSS"},{"value":"json","label":"JSON"},{"value":"markdown","label":"Markdown"},{"value":"rust","label":"Rust"},{"value":"go","label":"Go"},{"value":"java","label":"Java"},{"value":"csharp","label":"C#"}],"help":"Used for the basic syntax highlight (strings, keywords, numbers, comments)."},{"type":"number","key":"padding","label":"Padding (px)","defaultValue":32,"min":0,"max":100,"step":4},{"type":"boolean","key":"windowControls","label":"Show macOS window controls","defaultValue":true}],"invocation":{"webUi":"https://toolsly.tools/code-to-image","api":null,"notes":"Currently runs client-side in the user's browser. Drop a file on the UI at `webUi` and download the converted result. A remote MCP/REST API is planned."}}