Code Screenshot Generator

Paste code, style it, and export as a PNG image.

Preview

greet.ts
function greet(name: string): string {
  return `Hello, ${name}!`;
}

console.log(greet("World"));

About This Tool

How to Use
  1. Paste your code into the editor
  2. Select the programming language for syntax highlighting
  3. Choose a theme (One Dark, Dracula, One Light, VS)
  4. Adjust padding, background color, corner rounding, line numbers and the window frame
  5. Click Download PNG, or Copy Image to paste it straight into a chat or document
Common Use Cases
  • Sharing code snippets on Twitter, LinkedIn, or blog posts
  • Creating attractive code examples for documentation or presentations
  • Adding styled code blocks to design mockups
  • Teaching programming concepts with visually appealing examples
Tips & Tricks
  • Dark themes like One Dark and Dracula tend to look best on social media
  • Increase padding for a more spacious, professional look
  • Match the background color to your slide or page when embedding
  • The image is exported at 2x resolution for sharp text on high-DPI screens

Related Tools