Runs entirely on this device

Code to PDF

Pick one or more code or text files, put them in the order you want, and combine them into a single, printable A4 PDF. Nothing is uploaded anywhere; the files never leave this browser tab.

Tap to choose files
or drag them in — pick several at once, or add more later
This uses a lightweight, built-in syntax highlighter — not a full language parser. It recognizes comments, strings, and common keywords for popular languages, but won't catch every edge case.

Unusual Unicode characters may render as "?", since this uses a built-in Latin font that only supports Latin-1 characters. Turn this off to render every file in a single plain color.
How it works. This page loads MuPDF compiled to WebAssembly and typesets each file in monospaced Courier, fixed at A4 for printing, entirely in your browser's memory — the same engine desktop PDF tools use, just running locally instead of on a server. First load pulls down about 10 MB of engine files; after that it works from cache.

← All tools