# CodeToPDF > Free online developer tools — convert code to PDF, format JSON, decode JWTs, generate UUIDs, test regex, and more. 19+ tools, all free, no signup required. Most tools run 100% in your browser for instant, private results. ## About CodeToPDF is a growing suite of free, instant, and privacy-first developer utilities built by Kaushal Chhaunkar. The platform was born from a simple frustration — converting source code into beautiful, syntax-highlighted PDFs was way too hard. Today it has grown into a full developer toolkit covering formatters, encoders, generators, and everyday dev utilities. ### Core Principles - **Fast & Instant**: No waiting, no loading screens. Most tools run entirely in the browser for zero-latency execution. - **Private by Design**: Input is never stored or logged. For server-side tools (PDF conversion), files are permanently destroyed immediately after processing. - **Genuinely Free**: No hidden paywalls, no "freemium" credits, no account required. ### Tech Stack Built with Next.js, React, TypeScript, Tailwind CSS, Node.js, Express, MongoDB, AWS, and Puppeteer. --- ## PDF Tools ### Code to PDF - **URL**: https://www.codetopdf.com/tools/code-to-pdf - **What it does**: Converts source code files into professionally formatted, syntax-highlighted PDF documents. Upload one or multiple files, choose a theme, and download a print-ready PDF in seconds. - **Supported languages**: JavaScript, TypeScript, Python, Java, C, C++, C#, Go, Ruby, Rust, Swift, Kotlin, PHP, SQL, HTML, CSS, JSON, XML, YAML, Markdown, and 30+ more (50+ total). - **Themes**: Monokai, Dracula, GitHub Light, VS Code Dark, and more. - **Features**: Drag-and-drop multi-file upload, configurable font size and page size (A4, Letter), line numbers toggle, no signup required. - **How to use**: Upload source code files → select a syntax highlighting theme → configure optional settings (font size, page size, margins) → click "Convert to PDF" → download instantly. - **File limits**: Up to 20 files per conversion, each up to 5 MB. - **Security**: Files are processed in isolated containers and permanently deleted after conversion. Zero-retention policy. - **Clarification**: This tool prints raw code with syntax highlighting. It does NOT execute code or render HTML visually. - **Target audience**: Developers who need to include code in reports, academic papers, client deliverables, or print-ready documentation. ### Python Code to PDF - **URL**: https://www.codetopdf.com/tools/python-code-to-pdf - **What it does**: Executes Python scripts in a secure, isolated cloud sandbox and allows downloading generated PDF documents, charts, images, or reports. - **Pre-installed libraries**: PyMuPDF (fitz), ReportLab, Matplotlib, Pandas, NumPy, Seaborn, Pillow, OpenPyXL, Jinja2, FPDF2, Plotly, PyGal, Tabulate. - **Features**: Real-time streaming console output (stdout & stderr), auto-captures generated PDFs/charts/images, non-root sandbox execution with network isolation. - **Execution limits**: 30-second timeout, 1 GB RAM, max 100 KB script size. - **How to use**: Write or paste Python script → click "Execute & Generate PDF" → watch live console logs → download generated files. - **Security**: Code runs in a strictly isolated non-root sandbox without network access, environment secrets, or persistent storage. All temp files are purged immediately. - **Clarification**: This tool RUNS Python and captures generated PDFs. It does NOT convert .py source code text to PDF (use Code to PDF for that). - **Target audience**: Data scientists, analysts, and developers who generate PDF reports, charts, or visualisations programmatically with Python. ### Markdown to PDF - **URL**: https://www.codetopdf.com/tools/markdown-to-pdf - **What it does**: Converts Markdown documents to professionally styled PDFs preserving headings (H1–H6), code blocks with syntax highlighting, tables, ordered and unordered lists, blockquotes, and horizontal rules. - **Themes**: Default, GitHub, Minimal. - **How to use**: Paste or upload Markdown → select a PDF theme → click "Convert to PDF" → download the styled PDF. - **Conversion time**: Typically 5–15 seconds. - **Security**: Content permanently deleted from servers immediately after PDF generation. - **Clarification**: This renders Markdown to PDF. It does not print raw markdown code. - **Target audience**: Technical writers, documentation authors, README maintainers. ### HTML to PDF - **URL**: https://www.codetopdf.com/tools/html-to-pdf - **What it does**: Converts HTML with inline or embedded CSS to pixel-accurate PDF documents. Supports flexbox, grid, custom colours, borders, shadows, and Google Fonts via @import. - **Features**: Custom page size (A4, Letter), orientation (portrait, landscape), header and footer options. External scripts are not executed for security. - **How to use**: Paste HTML with CSS → select page size and orientation → click "Convert to PDF" → download the PDF. - **Clarification**: This renders HTML visually. If you want to print raw HTML code, use Code to PDF. - **Target audience**: Web developers generating reports, invoices, or documentation from HTML templates. ### Node.js Code to PDF - **URL**: https://www.codetopdf.com/tools/nodejs-code-to-pdf - **What it does**: Executes Node.js scripts in a secure cloud sandbox and captures generated PDFs or files for download. - **Pre-installed libraries**: pdfkit, jspdf. - **Features**: Real-time console output, auto-captures generated files, isolated cloud environment. - **How to use**: Write Node.js script → require pre-installed libraries like pdfkit → click "Execute & Generate PDF" → download generated files. - **Security**: Isolated sandbox container without access to internal networks or secrets. - **Target audience**: JavaScript and Node.js developers who want to generate documents dynamically. ### LaTeX to PDF - **URL**: https://www.codetopdf.com/tools/latex-to-pdf - **What it does**: Compiles LaTeX code directly in a cloud sandbox using standard pdflatex, generating beautifully typeset academic PDFs. - **Features**: Real-time compilation console output, zero-setup cloud environment. - **How to use**: Write LaTeX code → click "Compile & Generate PDF" → watch logs → download PDF. - **Security**: Isolated compilation sandbox. - **Target audience**: Researchers, academics, and students formatting papers, resumes, and math documents. ### Web Link to PDF - **URL**: https://www.codetopdf.com/tools/web-link-to-pdf - **What it does**: Captures a snapshot of any public web URL and converts it into a high-quality PDF with CSS styles intact. - **Features**: Captures live CSS and web fonts, configurable page size. - **How to use**: Enter full public URL → select page size → click "Convert to PDF" → download the snapshot. - **Target audience**: Anyone needing to archive web pages, save receipts, or capture visual documentation of websites. --- ## Formatters ### JSON Formatter - **URL**: https://www.codetopdf.com/tools/json-formatter - **What it does**: Formats, beautifies, and indents raw or minified JSON with instant syntax validation and error hints. Configurable indentation (2 or 4 spaces). - **Privacy**: Runs 100% in the browser. Data never leaves the device. - **How to use**: Paste JSON → formatted output appears instantly → toggle indentation → copy to clipboard. ### JSON Validator - **URL**: https://www.codetopdf.com/tools/json-validator - **What it does**: Validates JSON syntax in real time with precise error locations showing exact line number and column position. Catches missing quotes, trailing commas, unexpected tokens, mismatched brackets, and more. - **Privacy**: Runs 100% in the browser. - **How to use**: Paste or type JSON → check the valid/invalid status badge → fix reported errors using the exact line and column information. ### JSON Compare - **URL**: https://www.codetopdf.com/tools/json-compare - **What it does**: Deep-diffs two JSON objects and shows every added (green), removed (red), and changed (yellow) key with full dot-notation paths. Fully recursive — drills into every level of nesting. - **Privacy**: Runs 100% in the browser. - **How to use**: Paste JSON A in the left panel → paste JSON B in the right panel → click "Compare" → review differences with full paths. ### SQL Formatter - **URL**: https://www.codetopdf.com/tools/sql-formatter - **What it does**: Formats messy or minified SQL into clean, indented, readable queries. Handles CTEs (WITH clauses), subqueries, JOINs, and stored procedure syntax. - **Supported dialects**: MySQL, PostgreSQL, SQLite, T-SQL (MSSQL), BigQuery, generic SQL. - **Features**: Multi-dialect support, keyword case toggle (uppercase/lowercase), configurable indentation. - **How to use**: Paste SQL → select dialect → toggle keyword casing → copy the formatted output. ### HTML Formatter - **URL**: https://www.codetopdf.com/tools/html-formatter - **What it does**: Formats and indents raw or minified HTML markup for better readability. Preserves inline `