Code to PDF
Print source code files to PDF with line numbers.
Drop your files here
.js .ts .tsx .jsx .py .java .c .cpp .h .cs .go .rs .rb .php .sql .sh .css .xml .yaml .yml .kt .swift
How to use Code to PDF
- 1
Choose your files (.js, .ts, .tsx, .jsx, .py, .java, .c, .cpp, .h, .cs, .go, .rs, .rb, .php, .sql, .sh, .css, .xml, .yaml, .yml, .kt, .swift) or drop them into the box.
- 2
Adjust the options to suit your needs.
- 3
Click “Code to PDF” and download the result: pdf.
Your documents are processed entirely inside your browser. They are never uploaded to PDF100 or any third party, so Code to PDF is suitable for confidential files. Read our privacy policy.
Code to PDF questions
Is Code to PDF free?
Yes. Code to PDF on PDF100 is free with no account, no watermark and no daily limit. The site is supported by advertising.
Are my files uploaded when I use Code to PDF?
No. Code to PDF runs entirely inside your browser tab. The file is read and processed on your device and the result is saved straight to your downloads, so no copy reaches our servers.
Which files does Code to PDF accept?
Code to PDF accepts .js, .ts, .tsx, .jsx, .py, .java, .c, .cpp, .h, .cs, .go, .rs, .rb, .php, .sql, .sh, .css, .xml, .yaml, .yml, .kt, .swift, and you can add several files at once. The result is: pdf.
Is there a file size limit?
There is no fixed limit set by PDF100. Because processing happens on your device, the practical limit is your browser memory. Very large files work best on a desktop computer.
Does Code to PDF work on my phone?
Yes. Code to PDF works in current versions of Chrome, Safari, Edge and Firefox on desktop and mobile. Large documents are faster on a computer.
More convert to pdf tools
- TO
JPG to PDF
Convert JPG photos into a PDF without quality loss.
- TO
PNG to PDF
Convert PNG images, including transparency, into a PDF.
- TO
WebP to PDF
Convert WebP images into a PDF document.
- TO
Images to PDF
Combine JPG, PNG, WebP, GIF, BMP and AVIF images into a single PDF.
- TO
TIFF to PDF
Convert single or multi-page TIFF scans to PDF.
- TO
SVG to PDF
Convert SVG graphics into a PDF page.
- TO
Text to PDF
Convert plain text (.txt) files into a clean, paginated PDF.
- TO
Markdown to PDF
Render Markdown documents with headings, lists, tables and code to PDF.