Stop screenshotting your IDE. Format any code snippet with real colours and paste it into Microsoft Word, Google Docs or any document editor — indentation and all.
// Output will appear here…
How to use → Paste code, pick a language, background & border, then click Copy for Word to paste into any document, or Export .docx to download a ready-made Word file. In Word press Ctrl+V and choose Keep Source Formatting if prompted.
Drop any code snippet into the input panel. Works with any language.
Choose from 30+ languages or let auto-detect figure it out.
Choose dark, light, or no background. 12 presets to match your document style.
Click Copy for Word, then Ctrl+V in your document. Done.
Microsoft Word has no built-in syntax highlighting. FormatCode solves the problem in three clicks: paste, copy, paste into Word.
FormatCode supports 30+ programming languages. Click any language to load it directly into the tool.
The complete guide — from plain text workarounds to full IDE-style highlighting.
Read guide → PythonPython's indentation-sensitive syntax makes Word pasting especially tricky.
Read guide → TutorialComparing screenshots, VBA macros, Word styles and online tools.
Read guide →