Skip to main content

Code to Image Converter

Export source code as beautiful images. Supports syntax highlighting and theme customization.

7 lines / 127 chars
JavaScript
1function greet(name) {
2 const message = `Hello, ${name}!`;
3 console.log(message);
4 return message;
5}
6
7greet("PenguinTools");
Share this tool
📖

How to Use

Step 1

Enter Code

Enter Code

Enter the code to convert into an image

Step 2

Set Style

Set Style

Set theme, font, and background color

Step 3

Save Image

Save Image

Download as PNG image

Features

Syntax Highlighting

Syntax highlighting for numerous programming languages

Theme Selection

Choose from dark, light, and various color themes

Customization

Customize padding, line numbers, and window style

FAQ

JavaScript, Python, TypeScript, Go, Rust, Java, C++, and many more.