Code to image
Turn syntax-highlighted code into a PNG image for slides or docs.
Highlighted code will appear here.
Export runs locally in your browser with html2canvas; nothing is uploaded.
What it does
Highlight with highlight.js, render a preview card, and export PNG via html2canvas.
Other tools in this category
TinyPNG
Compress PNG and JPEG images locally (same engine as PNG/JPEG compressor).
Convertio
In-site file conversion hub: images, PDF, Base64, and more in the browser.
PNG / JPEG compressor
Compress PNG or JPEG images in the browser with quality and resize controls.
iLoveIMG
All-in-one image compress, resize, format convert, and light editing in the browser.
Images to PDF
Merge multiple images into one PDF file entirely in your browser.
Placeholder image generator
Create placeholder PNG images with custom size, colors, and label text.
Image format converter
Convert images between PNG, JPEG, WebP, and BMP locally.
Image card editor
Wrap a photo in a styled card with border, title, and padding, then export PNG.