Home › PDF Tools › LaTeX to PDF

LaTeX to PDF

Write or open a .tex file and see it rendered as you type: sections, lists, tables, figures, theorems and math (drawn with KaTeX). Download PDF saves that rendered document through your browser's Save as PDF option. It is a fast previewer for common LaTeX, not a full TeX engine.

Last updated:

Line 1

Download PDF opens your browser’s print window with only the rendered document. Choose Save as PDF (or “Microsoft Print to PDF”) as the destination, and turn off “Headers and footers” for a clean page.

Live preview Common LaTeX, rendered in your browser
Preview notes
No problems found.

The preview is a built-in renderer for common LaTeX (sections, lists, tables, figures, theorems, footnotes, references and KaTeX math), not a full TeX engine: line and page breaks follow the browser, and custom packages, BibTeX and exact LaTeX layout are not supported. For those, compile with a desktop TeX distribution (TeX Live, MiKTeX, MacTeX) or an online LaTeX service.

Advertisement
Advertisement

How to use the LaTeX to PDF

  1. Write your LaTeX in the editor, pick a template or press Open .tex to load a file.
  2. Add images (PNG or JPG) your document uses with \includegraphics, or extra .tex files for \input.
  3. Check the live preview and open Preview notes to see any commands the preview skipped.
  4. Choose paper size and margins, then press Download PDF.
  5. In the print window choose Save as PDF as the destination (turn off headers and footers) and press Save. Use Download .tex to keep the source.

Minimal LaTeX document

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\section{Introduction}
Einstein's relation $E = mc^2$ links mass and energy.
\begin{equation}
  \int_0^1 x^2 \, dx = \frac{1}{3}
\end{equation}
\end{document}

Everything before \begin{document} is the preamble: the document class and the packages. Everything between \begin{document} and \end{document} is typeset.

Quick reference

You wantWrite
Title block\title{…} \author{…} \date{…} in the preamble, then \maketitle
Headings\section{…}, \subsection{…}, \subsubsection{…} (add * for no number)
Bold, italic, monospace\textbf{…}, \emph{…}, \texttt{…}
Inline / display math$a^2+b^2=c^2$ / \[ … \] or \begin{equation} … \end{equation}
Aligned equations\begin{align} a &= b \\ c &= d \end{align}
Lists\begin{itemize} \item … \end{itemize} (or enumerate, description)
Table\begin{tabular}{lcr} a & b & c \\ \hline \end{tabular}
Image\includegraphics[width=0.6\textwidth]{photo.png} (needs \usepackage{graphicx})
Cross-reference\label{sec:intro} then \ref{sec:intro}
Footnote, link\footnote{…}, \href{https://…}{text} (with hyperref)
Special characters\% \$ \& \# \_ \{ \}, \textbackslash

What the preview supports

This tool is a LaTeX previewer, not a TeX compiler. It reads your source, turns the common commands into a formatted page and draws math with KaTeX. The PDF you download is a print of that page, so it looks close to a LaTeX article but the fonts, line breaks and page breaks come from your browser.

AreaSupported in the preview and PDFNot supported
Structure\maketitle, sections to \paragraph, numbering, \tableofcontents, \newpage, \clearpageExact page layout, headers/footers from fancyhdr
TextBold, italic, monospace, small caps, sizes, colors, links, footnotes, quotes, centering, verbatimCustom fonts (fontspec), microtype
MathInline and display math, equation, align, gather, matrices, \newcommand and \DeclareMathOperator (KaTeX)Rare math packages KaTeX does not implement
Lists and tablesitemize, enumerate, description, tabular with \hline, vertical rules, \multicolumn, booktabs ruleslongtable page splitting, tabularx widths
Figures\includegraphics with PNG/JPG images you add, captions, \label/\refPDF/EPS images, TikZ, pgfplots
Referencesthebibliography with \bibitem and \cite, theorems and proofsBibTeX/biblatex (.bib files), custom .sty/.cls files

When a document relies on features in the right-hand column, compile it with a full TeX distribution (TeX Live, MiKTeX or MacTeX with pdflatex) or an online LaTeX service. Commands the preview skips are listed under Preview notes.

Saving a clean PDF

  • Chrome, Edge, Brave: Destination → Save as PDF. Under More settings, untick Headers and footers; keep Background graphics on if you use colored boxes.
  • Firefox: Destination → Save to PDF, then untick Print headers and footers.
  • Safari (Mac): press PDF in the lower-left corner → Save as PDF.
  • iPhone and iPad: in the print preview, use the Share button to save the PDF to Files.
  • Windows printers list: Microsoft Print to PDF also works.

The paper size and margins you choose in the tool are passed to the print window; if your browser still shows a different size, pick the same paper size there.

Frequently asked questions

How do I convert a LaTeX file to PDF here?

Paste your source or press Open .tex, add any PNG/JPG images it uses, check the live preview, then press Download PDF. Your browser's print window opens with only the rendered document; choose Save as PDF as the destination and press Save.

Is this a real LaTeX compiler?

No. The tool uses a built-in renderer that converts common LaTeX commands to a web page and draws math with KaTeX. The PDF is a print of that preview, so fonts, line breaks and page breaks are decided by your browser, not by TeX. For exact LaTeX typesetting use a desktop TeX distribution such as TeX Live, MiKTeX or MacTeX, or an online LaTeX service.

Which LaTeX features does the preview support?

Title, author and date with \maketitle; sections and subsections with numbering; \tableofcontents; bold, italic, monospace, small caps, colors and links; itemize, enumerate and description lists; tabular tables with lines and \multicolumn; figures with \includegraphics and captions; \label and \ref; footnotes; theorem, proof, abstract, quote, center and verbatim environments; thebibliography with \cite; and math via KaTeX, including equation, align, gather, matrices and your own \newcommand macros.

What does not work?

Custom or rare packages (TikZ, pgfplots, minted, custom .cls/.sty files), BibTeX or biblatex (\bibliography and .bib files), PDF or EPS images, and exact LaTeX page layout. Unsupported commands are skipped and listed under Preview notes. Use a full TeX installation or an online LaTeX service for those documents.

Is my document uploaded to a server?

No. The preview and the PDF are both created in your browser. Only the KaTeX math library is downloaded from a public CDN; your text and images never leave your device.

How do I start a new page in the PDF?

Write \newpage or \clearpage where you want the break. The preview shows a dashed page-break line there, and the PDF starts a new page. Equations, tables and figures are kept together instead of being split across pages.

Why does the PDF have a date or web address at the top?

Those are the browser's print headers and footers. In the print window open More settings and turn off Headers and footers, then save again.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

LaTeX Equation EditorWrite LaTeX math with a symbol palette and live preview; export PNG, SVG or MathML for Word.LaTeX Table GeneratorEdit a table like a spreadsheet or paste from Excel and get LaTeX tabular or booktabs code.Markdown to PDF ConverterWrite or paste Markdown, preview it with a clean theme and export a polished PDF in seconds.Text to PDF ConverterTurn plain text or a .txt file into a clean PDF with your font, size, margins and page size.JPG to PDFCombine JPG photos into one PDF with page size, margins and orientation options.PowerPoint to PDFConvert PPTX slides to PDF, one page per slide at the original slide size. Batch files, no upload.OCR PDFMake scanned PDFs searchable and copyable with OCR in 70+ languages, or export the text.PDF to WordConvert PDF files to editable Word documents.PDF to ExcelExtract tables from PDF files into an Excel spreadsheet (XLSX) or CSV, right in your browser.PDF to JPGTurn PDF pages into high-quality JPG images.PDF to PNGConvert PDF pages to PNG images with custom DPI and transparent background.Word to PDFConvert Word DOCX documents to PDF.Image to PDFConvert JPG, PNG, WEBP and more into a PDF.PDF to Text ConverterExtract the text from any PDF page by page, then copy it or save it as a TXT file.HTML to PDF ConverterPaste HTML and CSS, preview it as pages and download a PDF, safely in your browser.Excel to PDF ConverterConvert Excel and CSV sheets into tidy, paginated PDF tables with repeated headers.Extract Images from PDFPull every embedded photo and graphic out of a PDF as PNG or JPG, or save pages as images.PDF to PowerPointTurn every PDF page into a PowerPoint slide (PPTX) in 16:9, 4:3 or the PDF's own size.PDF to MarkdownConvert PDF to clean Markdown with headings, lists, tables, bold, italics and links.PDF to HTMLConvert PDF to a clean, responsive HTML page or an exact positioned layout, in your browser.PDF to Long ImageStitch all PDF pages into one tall PNG or JPG image, with gap, width and page range options.PNG to PDFConvert PNG images to one PDF, keeping transparency or filling it with white or any color.HEIC to PDFConvert iPhone HEIC photos into one PDF in your browser, with page size, margins and reordering.CSV to PDFTurn a CSV file into a clean, paginated PDF table with repeating headers.EPUB to PDF ConverterConvert EPUB e-books to PDF with images, page size, font size, margins and clickable bookmarks.PDF to TIFF ConverterConvert PDF pages to multi-page or single-page TIFF in color, grayscale or black and white.RTF to PDF ConverterConvert RTF documents to PDF with fonts, tables, images and page size options.SVG to PDF ConverterConvert SVG files to vector PDF with page size and fit options, or merge many SVGs into one PDF.TIFF to PDF ConverterConvert single and multi-page TIFF scans to PDF with page size and compression options.WEBP to PDF ConverterConvert one or many WEBP images to a PDF with page size, margins, layout and reordering.Add Image to PDFPlace a logo, photo or signature image on any PDF page. Drag, resize, rotate and set opacity.Compress PDF to 100KBShrink a PDF to 100KB or less automatically, keeping every page and page size.HTML to Word ConverterConvert HTML code or pasted rich text into an editable Word .docx document.Image to Word ConverterTurn JPG, PNG or screenshot text into an editable Word (.docx) document with OCR, in your browser.PDF ConverterConvert Word, Excel, PowerPoint, images, text, HTML or EPUB to PDF, and PDF to JPG, PNG, Word or text.PDF to EPUBConvert PDF to a reflowable EPUB e-book with chapters, headings, images and a table of contents.Scanned PDF to Word (OCR)OCR scanned PDFs or page photos into an editable Word document with rebuilt paragraphs.Word to JPGTurn every page of a Word .docx document into a JPG image, free and in your browser.EML to PDFConvert .eml emails to PDF with sender, recipients, date, formatted body, images and attachments.MOBI to PDFConvert DRM-free MOBI, AZW and AZW3 e-books to PDF with chapters, images and page size options.MSG to PDFConvert Outlook .msg emails to PDF with headers, formatted body, images and attachment list.ODT to PDFConvert OpenDocument Text (.odt) files to PDF with headings, lists, tables and images.EPS to PDFConvert EPS and PostScript files to vector PDF in your browser, cropped to the artwork.PDF to CSVExtract tables from a PDF to CSV files, with draggable column lines to fix the columns.PDF to SVGConvert PDF pages to scalable SVG vector files, with text kept as text or as paths.PDF to WEBPConvert PDF pages to small, sharp WEBP images with a DPI choice and a quality slider.Cursive Writing WorksheetMake cursive tracing worksheets from any text: joined letters, dotted and faded rows. PDF.EPUB MakerWrite or import chapters, add title, author and cover, and export a valid EPUB 3 e-book.Images to PowerPointTurn photos into a PowerPoint .pptx deck, one image per slide, with captions and 16:9 or 4:3.Merge Word DocumentsCombine several .docx files in any order into one Word document, with page or section breaks.PDF to FlipbookTurn a PDF into a page-turning flipbook with zoom and fullscreen, and export it as an HTML ZIP.PowerPoint ViewerOpen and present .pptx files in your browser with thumbnails, speaker notes and full screen.Whiteboard Photo to PDFClean up whiteboard and blackboard photos: straighten, remove glare, whiten, then save as PDF.DjVu to PDFConvert DjVu scans and books to PDF, with resolution, compression and page range options.
See all 53 PDF Converters →