Code image generator
Getting ready…
Getting ready…
Code image generator User guide
Create a highlighted code image with line numbers.
Instructions
- Paste code and choose its language.
- Set font size, line numbers and background color.
- Create the code image, review syntax highlighting and save PNG.
Example
Input / settings%3B%3C%2Ftext%3E%3C%2Fsvg%3E%0A)
const answer = 42;
Result / checks%3B%3C%2Ftext%3E%3C%2Fsvg%3E%0A)
Highlighted code PNG
Please note
Text → PNG
- Code is rendered as text and is never executed. Plaintext disables syntax highlighting.
- Up to 200,000 characters and 500 lines. Very long lines can exceed the 10,000-pixel side or 16-million-pixel output limit.
- Files and entered content are processed in this browser. Save results before closing the page.