WerklyTools
EN
Buy me a coffee

Code to image

Create attractive code screenshots for social media, slides, blogs or documentation. Paste your code, pick a language, theme and background, and download a crisp PNG or a scalable SVG.

Processed 100% in your browser

Background
Preview

Ctrl + Enter runCtrl + C copy result

How to use

  1. 1Paste your code in the editor.
  2. 2Choose the language (or leave auto-detect), the theme and the background.
  3. 3Adjust padding, font size, shadow and line numbers.
  4. 4Download the PNG or SVG, or copy the image to the clipboard.

Use cases

  • Share a code snippet on X, LinkedIn or Instagram.
  • Put good-looking code in slides and presentations.
  • Illustrate blog posts and tutorials.
  • Document examples without depending on editor formatting.

Frequently asked questions

Is my code sent to a server?

No. Highlighting and image generation happen in your browser, so your code never leaves your device.

Which languages are supported?

JavaScript, TypeScript, Python, Java, C, C++, C#, Go, Rust, PHP, Ruby, Swift, Kotlin, SQL, Bash, JSON, YAML, HTML/XML, CSS and Markdown, plus auto-detection.

What is the best export resolution?

With 2× or 3× you get crisp images on retina screens. The SVG is vector and looks perfect at any size.

Can I use a transparent background?

Yes. Choose “Transparent” in the backgrounds and the PNG is exported without a background, with just the code window.

Related tools