Code to image
Turn a code snippet into a clean, shareable picture with a window frame, a theme and light syntax colouring, then download or copy the PNG.
Runs in your browserNothing uploadedWorks offline
Loading Code to imageRuns on this device. Nothing is uploaded.
Questions
Which languages are coloured?
The colouring is light and language neutral: comments, strings, numbers and common keywords from popular languages. It is made to look good in a picture, not to be a full syntax highlighter.
How sharp is the picture?
It is drawn at twice the size shown, so it stays crisp on high resolution screens and when a social network scales it.
Is there a length limit?
The picture uses the first 120 lines. Short snippets of 5 to 25 lines read best when shared.
Related tools
All images toolsImagesjpeg png webpEXIF viewerSee the camera, lens, settings, date and GPS location hidden in a photo, plus every EXIF, XMP and IPTC field, without uploading it.Imagespng jpeg webpImage to text (OCR)Pull printed text out of screenshots, photos and scans with Tesseract OCR running in your browser, with a confidence score for each image.Imagespng jpeg webpRemove backgroundCut the subject out of a photo with an AI model that runs in your browser, then save a transparent PNG or put it on a solid colour.Imagesjpeg png webpRemove EXIF and locationStrip GPS location, camera details and other hidden metadata from JPG, PNG, WebP and HEIC photos, without re-encoding, and see what was removed.Imagespng jpeg webpUpscale imageEnlarge a picture 2x or 4x with a super-resolution AI model that runs in your browser, sharper than plain resizing.Imagesimage jpg jpegAdd text or watermark to imagesPut a caption, credit or tiled watermark on many photos at once, with position presets, drag to place, size, colour and opacity.