Skip to content
gg
coder
Home
Apps
Games
Tools
Docs
Find Me
Toggle theme
Tools
Generators
Code to Image
Built: 6/25/2026, 3:03:36 PM
Code to Image
Create beautiful code screenshots with syntax highlighting and gradient backgrounds — export as PNG.
Code
function greet(name: string): string { const message = `Hello, ${name}!`; // Log the greeting console.log(message); return message; } greet("World");
Language
JavaScript
TypeScript
Python
Rust
Go
HTML
CSS
SQL
JSON
Shell
Plain Text
Theme
Monokai
Dracula
Nord
GitHub Dark
GitHub Light
Background
Padding
16px
32px
48px
64px
Font Size: 14px
Border Radius: 12px
Title
Window Chrome (macOS dots)
Line Numbers
Download PNG
Copy PNG
snippet.ts
1
function
greet
(
name
:
string
)
:
string
{
2
const
message
=
`Hello, ${name}!`
;
3
// Log the greeting
4
console
.
log
(
message
)
;
5
return
message
;
6
}
7
8
greet
(
"World"
)
;