Code Snippet to Image
Turn source code into a shareable, syntax-highlighted image.
snippet.js
function greet(name) { return `Hello, ${name}!`; }
Paste any code, pick light or dark theme, and download a clean PNG with a macOS-style title bar — perfect for tweets, slides and documentation.
Frequently asked questions
Which languages are highlighted?
A lightweight highlighter recognizes common keywords, strings, comments and numbers across most C-like and scripting languages.
Can I change the filename shown in the title bar?
Yes — edit the filename field above the code area before downloading.