Turn a code snippet into a short MP4. Pick how the code appears, set the timing and frame size, then export.
Features
27 languages
Pick the language for syntax highlighting, or let an imported file set it.
Formatting
Tidy the code with Prettier before you animate it.
Import a file
Open a source file, like .ts, .py or .go. The language and file name are set from it.
Your Gists
Signed in, search and load code you saved to your Gists.
Zoom
Scale the window inside the frame, up to the padding. The video follows.
Four presets
Typing, Line by line, Fade in, or Highlight lines.
Highlight steps
For Highlight lines, add steps and click line numbers to pick which lines each step shows.
Typing style
Natural types with small pauses like a person. Steady types at an even pace. Show or hide the blinking cursor.
Speed
Slow, Normal or Fast.
End hold
Keep the last frame on screen for 0.5, 1, 2 or 3 seconds.
Timeline
Play, pause and click the timeline to jump to any moment. The length and frame size are shown next to it.
27 themes
18 editor themes, like Dracula, One Dark, Nord and GitHub Light, and 9 canvas themes, like Nebula and Ocean. Search them by name.
Four sizes
16:9 at 1920×1080, 1:1 at 1080×1080, 4:5 at 1080×1350 and 9:16 at 1080×1920.
Padding and window
Padding of 0, 16, 32 or 64 px, and a macOS, Windows or no window frame, with an optional file name you can edit.
11 code fonts
JetBrains Mono, Fira Code, Source Code Pro, IBM Plex Mono, Cascadia Code and six more, at 12 to 48 px.
Line numbers
Turn line numbers on or off, and show hidden characters like tabs and spaces.
Background
A pattern behind the frame: dots, grid, lines or glow.
Background image Pro
Upload a PNG, JPEG or WebP up to 8 MB to sit behind the code.
Social handle
Add your X, GitHub, LinkedIn, Instagram or YouTube handle at the bottom left, and a small snipsco.com label at the bottom right if you want one.
MP4 Pro
H.264 at 30 fps, at the frame size you picked, with a progress bar you can cancel.
GIF Pro
A looping GIF at 15 fps and up to 1280 px wide, small enough for a README or a Slack thread.
Publish the video Pro
Make a public snipsco.com page that plays the video, with the code as text below it.
Share Pro
Send the MP4 to an app through your device's share menu, where the browser supports it.
Edit as image
Open the same code and style in Code to image to export a still PNG.
Paste a snippet and pick a theme.
Typing, line by line, fade, or highlight. Then set the timing and the frame size.
Export an MP4, or a GIF for READMEs.
FAQ
No. MP4 and GIF export are part of Snipsco Pro, which costs $6 a month or $48 a year and needs an account. You can play every preset for free, and 1x PNG export in Code to image stays free with no account.
Your code in the same window card as Code to image, on the theme background, animated with one of four presets: Typing, Line by line, Fade in, or Highlight lines. For Highlight lines you pick which lines each step shows. You set the padding, window, font, speed (Slow, Normal or Fast), how long the last frame holds (0.5, 1, 2 or 3 seconds) and the theme. The MP4 has no sound and no watermark.
Four frame sizes: 16:9 at 1920x1080, 1:1 at 1080x1080, 9:16 at 1080x1920 and 4:5 at 1080x1350, all as H.264 MP4 at 30 fps. The video is encoded in your browser, so your code isn't uploaded to make it. If your browser can't encode H.264, the Export button doesn't appear.
Yes. Edit as image opens Code to image with the same code, language, theme, file name, marked lines and style, and the 1x PNG there is free with no account. Animate in Code to image brings your code back here.