📄

Code to PDF

Free

Turn any source code file into a professionally formatted PDF with full syntax highlighting. Upload one or multiple files, choose a theme, and download a print-ready PDF in seconds. No account required.

Select Files

Loading...

Settings

How to Use Code to PDF

  1. 1

    Upload your source code files by dragging and dropping them into the upload area, or click to browse your filesystem. Multiple files are supported in one batch.

  2. 2

    Select a syntax highlighting theme from the dropdown — choose from Monokai, Dracula, GitHub Light, or VS Code Dark to match your preference.

  3. 3

    Configure optional settings: font size, page size (A4 or Letter), line number visibility, and page margins.

  4. 4

    Click "Convert to PDF". Your files are processed in an isolated container and the PDF downloads immediately. Files are permanently deleted from our servers right after.

Features

  • Supports 50+ programming languages
  • Multiple syntax highlighting themes (Monokai, Dracula, GitHub, VS Code)
  • Drag-and-drop multi-file upload
  • Configurable font size and page size
  • Line numbers toggle
  • No signup required

Frequently Asked Questions

Is my code secure?

Yes. Files are processed in isolated containers and permanently deleted after conversion. We have a strict zero-retention policy.

Which languages are supported?

JavaScript, TypeScript, Python, Java, C, C++, C#, Go, Ruby, Rust, Swift, Kotlin, PHP, SQL, HTML, CSS, JSON, XML, YAML, Markdown and 30+ more.

Do I need to create an account?

No. You can convert code to PDF instantly without any signup or login.

How many files can I convert at once?

You can upload up to 20 files per conversion job. Each file can be up to 5MB.