PNG

Code to Image

Paste code, choose syntax highlighting, line numbers and padding, then save or copy a PNG. Your code is never executed.

See result and limits ↓

PNG

Files are processed in your browser, without uploads.

Preview

Inspect input and result

Real sample input and the result produced by this tool.

const value = "<script>alert(1)</script>";
// public sample
console.log(value);
Input / settingsTXT · 79 B · 79 characters
Result
ResultPNG · 17,566 B · 602 × 173 px

Example settings: source: local tool export

Samples contain public test data. Text previews may be shortened; downloads contain the complete files.

Code to Image

Paste code, choose syntax highlighting, line numbers and padding, then save or copy a PNG. Your code is never executed.

Up to 20,000 characters, 150 lines and 4096 px per edge. Tabs become four spaces.

How it works

01

Prepare

Add or set: Code / Language.

02

Process and inspect

Adjust Theme / Font size / Padding (px) / Line numbers and inspect Preview.

03

Save the result

Choose “Copy image / Download PNG”. Check the downloaded image at its original size.

questions

FAQ

How are tabs and long code handled?

Up to 20,000 characters, 150 lines and 4096 px per edge. Tabs become four spaces.