Editor Options
Language
Font
Editor Theme
Font size
16
Editor Width
66
Roundness
12
Shadow
2
Tilt
Canvas options
Watermark

Code Screenshot Generator

Free size
Syntax Highlighting
Languages Support

Free tool to create code screenshots for 20+ languages including HTML, CSS, JavaScript

Share this template →

Share code as an image people can read

Code pasted into a post on X or LinkedIn loses its formatting, and a screenshot of your editor shows everything around it. Pika's code screenshot generator puts just your snippet in a clean window, with syntax highlighting, a title and a background.

Type or paste your code, pick its language and choose a light or dark editor theme. There's no account and no watermark, and you can save the image as a PNG or JPG or copy it to your clipboard.

Supported languages

Syntax highlighting covers 23 languages: C-like languages, Clojure, CoffeeScript, CSS, Dart, Elixir, Elm, Go, HTML, Java, JavaScript and TypeScript, JSX, Markdown, Perl, PHP, Python, Ruby, Sass, Shell, Slim, SQL, Swift and YAML.

Tips for readable code images

  • Keep the snippet short. Ten to twenty lines that show one idea read far better in a feed than a whole file.
  • Make the text bigger for social posts. The font size goes from 14 to 24, and you can change the editor width to fit the canvas.
  • Use the window title for the file name, like app/page.tsx, or type a single space to hide it.
  • Pick a background that contrasts with the editor theme: a bright gradient behind the dark theme, or a deeper color behind the light one.
  • Pro adds more fonts (JetBrains Mono, IBM Plex Mono, Source Code Pro and Space Mono) and export at up to 4K.

Make code images from VS Code

With the Pika VS Code extension, select code in your editor and run "Make screenshot in Pika" from the Command Palette. This page opens with your code and its language already set.

Related tools

Generate and automate your marketing assets

Pika lets you generate beautiful marketing images in no time

Thomas Frank
Branden Harvey
Harvinder
Akash Bhadange
Dan Oshinsky
used by 8,000+ users

Simple designs or Pro.Pika has got you covered.

Create something as basic as a screenshot with a browser frame or as complex as a marketing image with text, shapes and patterns. Pika gives you all screenshot editing options you'll need

Add browser frames

Add macOS, Windows and other beautifully crafted frames to your screenshot for better presentation

View all frames →

Apply beautiful backgrounds

Pika has beautiful set of gradient backgrounds and image backgrounds to perfectly suit your browser mockups
View background options →

Save your time with Presets

You can save your settings as custom presets, which you can later apply with just one click to save your time

Screenshot and Mockup templates

Quickly generate App Store images, tweets, code screenshots and images of different styles with templates

View all templates →

Social media ready sizes

Export your image in sizes perfect for your tweets, Instagram posts/stories, App Store images or choose your own size

Background patterns

Patterns can make your images make it look like they're done in Photoshop or Figma
Learn more →

Capture website screenshot

Create website mockups by capturing screenshot from website URL. You can capture full page and mobile view

Add shapes, text, watermark layers and more

Add text, shape layers and customizable watermark with your logo, link, Twitter handle more

Instant customization

Pika automatically applies your last customizations to save your time, gives you shortcuts to instanyly export images

Pika Extensions & Tools

Capture and edit screenshots with extensions and tools to make your workflow even faster

Chrome Extension

Chrome Extension

Capture tab screenshots and design in Pika

Get Chrome Extension →
VSCode Extension

VSCode Extension

Quickly create code images from your VSCode editor

Get VSCode Extension →
Raycast Extension

Raycast Extension

Quickly open images from your system in Pika through Raycast

Get Raycast Extension →

Loved by the best!

Check out these amazing reviews by users who use Pika and love it!

Branden Harvey's Pika review

Making your images pop is important — but before I discovered Pika I wasted hours manually editing every image to look nice


Now that I use Pika, I save so much time and all of the visuals on my site look better than ever

Branden Harvey
Founder, GoodGoodGood.co
Quentin Quo's Pika review

I'm now using pika.style 🎨

Highly recommend this small but great tool 👍

Quentin Quo
Entrepreneur, SaaS Founder
Witt's Pika review

I'm using pika.style, when I share image on social media or send screenshots to friends, pika is always my first choice.

Witt
Developer
Matt Birchler's Pika review
Pika is a great web app for enhancing my screenshots. I love finding little tools like this that help me elevate my work in subtle, but effective ways ❤️
Matt Birchler
Designer, Video creator, BirchTree.com
Sveta Bay's Pika review
👀 Helps to get beautiful screenshots (like in this thread) in seconds. I use it daily.

❤️ Simple, fast, and has a great gradients collection.

beautiful screenshots in Peerlist emails are made using Pika.style
Sveta Bay
Indie Entrepreneur & Nomad
Greg Younger's Pika review
@justwavyj uses Pika.style that allows for great twitter photos. Josh uses them to drive engagement. Just like I'm doing with this tweet:)
Greg Younger
Thomas Frank's Pika review
Huge fan of Pika. Lets me cut a lot of corners when making images for blog posts and such, so I'm happy to pay
Thomas Frank
Notion Expert, YouTube Creator with 1.2mn+ subs
Sam Szuchan's Pika review
Pika's excellent for reformatting images into a beautiful, presentable format in seconds. Super cheap, too.
Sam Szuchan
Thục Quyên Uông's Pika review
Pika.style is an arc tool developed by @thelifeofrishi, which makes it possible to create beautiful screenshots with just a few clicks
Thục Quyên Uông
Travis Renn's Pika review
Whoa! Just used pika.style to render a killer UI screenshot of @tryratingfish. Beyond impressed @thelifeofrishi !

No brainer $99 annual purchase. Done. Keep up the good work.
Travis Renn
SaaS Founder
Katt's Pika review
pika.style is my favourite
Katt
No-code Maker
Sean C Davis's Pika review
Very cool and useful tool for professionally displaying screenshots/images for docs/posts.
Sean C Davis

Trusted by leading companies

Also used by YCombinator Starts using Pika backed startups and big companies

Trunk.io
Starlight.money
Tweethunter.io
Umbrel.com
Pallyy.com
Whalestack.com
Pushowl.com
Nocodeinstitute.io
Peerlist.io
Paddle.com
Givebutter.com
Readwise.io
Incident.io
Fortelabs.com
Stonly.com
Dstory.co

How to create image from code snippets?

3 steps to present your code elegantly

1
Add your code snippet

You can edit/paste your code snippet in the editor in the canvas on the left


Once done, you can select the language of your code usingLanguage option on the right. Selecting the right language will also enable correct syntax highlighting for your code

2
Customize your image

Use the customization options to beautify your image as you like


You can change code font size, editor width, editor theme, canvas size, background color or image, add custom text or icon, add tilt-effect and more

3
Export your image

Use shortcut ⌘+C/ Ctrl+C to copy beautified image as PNG file to clipboard or ⌘+S/Ctrl+Sto save it to your system. You can also save image in JPEG format


Pro users can export images in size upto 4K resolution using the 2x in the output size

FAQ

Frequently asked questions

How do I make a code screenshot?

Type or paste your code into the editor, choose its language for syntax highlighting, give the window a title and pick a light or dark theme and a background. Then save it as a PNG or copy it.

Which languages are supported?

23 languages: C-like, Clojure, CoffeeScript, CSS, Dart, Elixir, Elm, Go, HTML, Java, JavaScript and TypeScript, JSX, Markdown, Perl, PHP, Python, Ruby, Sass, Shell, Slim, SQL, Swift and YAML.

Is the code screenshot tool free?

Yes, with no account and no watermark. Pika Pro adds more fonts (JetBrains Mono, IBM Plex Mono, Source Code Pro and Space Mono, alongside the default DM Mono) and 4K export.

Can I hide the window title?

Yes. Delete the title and type a single space instead. The window keeps its macOS-style controls.

Can I make code images from VS Code?

Yes. Install the Pika VS Code extension, select your code and run "Make screenshot in Pika". It opens here with your code already in the editor.

Pika Extensions & Tools

Capture and edit screenshots with extensions and tools to make your workflow even faster

Chrome Extension

Chrome Extension

Capture tab screenshots and design in Pika

Get Chrome Extension →
VSCode Extension

VSCode Extension

Quickly create code images from your VSCode editor

Get VSCode Extension →
Raycast Extension

Raycast Extension

Quickly open images from your system in Pika through Raycast

Get Raycast Extension →

Beautiful screenshots made easy!

Save hours of creative thinking and efforts with Pika

Mockups and Images created using Pika