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.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use Code to Image online
- Paste the code. Pick the language.
- Choose the look. Colours, window, numbers.
- Set the background. Gradient or none.
- 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?
Can I get a transparent background?
Why is my code coloured differently from my editor?
How many lines fit?
Is the code sent to a server to draw the picture?
Where does my text go when I use the Code to Image?
Can I chain the Code to Image with another tool?
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.