Skip to main content

About Pretty Code

We make it easy to share code that people can actually read.

Code gets shared everywhere: in posts, slides, docs, READMEs and lessons. A screenshot of your editor brings your sidebar, your tabs and text too small to read on a phone.

Pretty Code turns that code into a clean image. Paste it, upload files or import from GitHub, pick a theme, a font and a window, and export PNG, SVG, JPEG or WebP, or copy it to your clipboard.

It's for developers, developer advocates, technical writers and teachers — anyone who shows code to other people.

The editor is free and works without an account. A free account adds a library with folders and tags, and style presets so every image matches. Teams on the Enterprise plan can render images from their own tools through the API.

Open the editor

What we care about

  • Readable first.

    Highlighted lines, line numbers that match your file, and sizes made for where the image goes.

  • What you see is what you get.

    The preview and the exported file are drawn by the same renderer.

  • Your code, uncut.

    If code is too long for one image, we tell you. We never trim it or shrink it to fit.

We value your privacy

We use cookies to measure traffic and improve your experience. Analytics stays off until you accept. Privacy Policy