Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

Code to Image

Paste your code and get a clean picture with syntax colours, a Mac or Windows style window, line numbers and a gradient background. Download it as SVG or PNG.

How to use Code to Image online

  1. Paste the code. Pick the language.
  2. Choose the look. Colours, window, numbers.
  3. Set the background. Gradient or none.
  4. Download the picture. SVG or PNG.

Why use this free Code to Image

  • Nine languages
  • Four colour themes
  • Mac and Windows style windows
  • Line numbers
  • Gradient or transparent background

Share code as a picture

A picture of code is easy to put in a slide, a post or a document, where pasted text would lose its colours. Paste your code, pick the language and the colours, and the page draws the picture at once. The SVG stays sharp at any size and the PNG is ready for slides and social posts.

Colours and languages

The page colours keywords, strings, comments, numbers and function names for JavaScript and TypeScript, Python, PHP, SQL, shell, CSS, HTML and JSON, with a plain text choice. It uses a simple highlighter, not a full parser, so very unusual code can be coloured slightly differently from your editor.

The look

Choose a night, light, forest or sunset theme, a Mac style window with three dots, a Windows style bar or no bar, and a title for the bar. Turn line numbers on or off, set the text size and the space inside the window, and pick two colours for the gradient behind it. Set the outer space to nothing for a transparent background.

Limits to know

A picture can hold up to eighty lines of up to one hundred and forty characters. Long lines are not wrapped. The width of the text is worked out from a fixed character width, so the picture looks right with a monospace font. Do not paste secrets such as keys or passwords into any code picture you will share.

Privacy

The picture is drawn in your browser and your code is never sent anywhere.

Using the tool

As you type in the Code to Image, the result appears at once. Undo and redo step back through your earlier text.

Code to Image: frequently asked questions

Which languages are coloured?
JavaScript, TypeScript, Python, PHP, SQL, shell, CSS, HTML and JSON. Other code works as plain text.
Can I get a transparent background?
Yes. Set the space around the window to zero.
Why is my code coloured differently from my editor?
The page uses a simple highlighter and not a full parser of each language.
How many lines fit?
Up to eighty lines of up to one hundred and forty characters.
Is the code sent to a server to draw the picture?
No. The picture is drawn in your browser.
Where does my text go when I use the Code to Image?
It stays in your browser tab; the Code to Image sends nothing anywhere.
Can I chain the Code to Image with another tool?
Yes. Use the copy button on the Code to Image result, or select it and copy it by hand.

Related searches for Code to Image

  • Code to Image online
  • free Code to Image
  • Code to Image online free
  • Code to Image for mobile
  • Code to Image without sign up
  • convert code to image
  • code to image converter
  • Code to Image – Developer & Web Tools

Code to Image is a free online tool on MAITBOX, in the Developer & Web Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Developer & Web Tools →

Search tools