Published: 24 November 2026 · Updated: 24 November 2026

Free PDF to LaTeX Converter — Download a .tex File

Have a paper as a PDF and need the text back in LaTeX? Drop the file below and get a complete, compilable .tex document — text extracted, every special character escaped, one section per page. Free, no signup, and your draft never leaves your browser.

🔒 Your data never leaves this page

📥 No upload🔒 Files never leave your device🚫 No sign-up
Mathematics lecture with formulas on a blackboard
Photo: Steklov Institute / Wikimedia Commons, CC BY-SA 3.0
📄

Drop a PDF here or click to choose one

Extracted text becomes a compilable .tex file — nothing is uploaded.

Honest limit: this converts the PDF's extracted text into LaTeX. Scanned PDFs (pages are images, no selectable text) cannot be converted here — they need OCR first. Formatting, tables, figures and maths become plain text; see the guide below.

Next steps: Free Extract Text from PDF — get the plain text first; Free PDF to Markdown Converter — the same text as Markdown instead.

What is a PDF to LaTeX converter?

Quick answer: It reads the selectable text out of a PDF and rebuilds it as a LaTeX source file — a .tex document you can compile into a new PDF with Overleaf or pdflatex. The output is a complete document: \documentclass{article}, the packages it needs, your title and author, one \section per PDF page, and \end{document}. Every character that means something special in LaTeX is escaped, so the text compiles exactly as written.

Students and researchers hit this problem often. A supervisor sends back a paper as a PDF and asks for the LaTeX source — but the source was lost when a laptop died. A lecturer hands out lecture notes as a PDF and you want to typeset your own version with corrections. In each case the words exist, locked inside a PDF — and retyping a 20-page paper is a punishment nobody deserves.

Conversion is honest about what it can and cannot do. A PDF stores text as positioned characters, not as structure — it knows where each letter sits, but not that a line is a heading, a paragraph, or a table cell. So this tool converts the text faithfully and rebuilds a simple, compilable structure around it. Headings, bold text, tables and equations come out as plain text in reading order, and you re-mark them up afterwards.

How to convert a PDF to LaTeX in 4 steps

  1. Drop your PDF onto the page — or click to choose it. It never leaves your device.
  2. Set the title and author. They become the \title and \author of the new document; leave the author blank to skip it.
  3. Press Convert to LaTeX. The tool extracts the text page by page, escapes every LaTeX special character, and builds the complete .tex document.
  4. Copy or download the .tex file. Paste it into Overleaf or save it as document.tex and run pdflatex — it compiles without edits.

The ten characters that must be escaped

LaTeX gives ten characters a special meaning. A plain % in your text would start a comment and hide the rest of the line; a plain & would break a table; a plain $ would start maths mode and likely fail to compile. The converter replaces each one with its safe form, so the document compiles on the first try.

Character in your PDFWhat it means in LaTeXEscaped form in the .tex file
\Starts a command\textbackslash{}
{ and }Group delimiters\{ and \}
$Maths mode\$
&Table column separator\&
%Comment — hides the rest of the line\%
#Macro parameter\#
_Subscript (maths only)\_
~Non-breaking space\textasciitilde{}
^Superscript (maths only)\textasciicircum{}

Worked example — a two-page essay excerpt

Take a two-page student essay exported from Word. Page 1 reads “Introduction — 20% of the mark & the key question: why do firms fail?” and page 2 continues the argument. The converter produces a .tex file that starts like this:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[a4paper,margin=2.5cm]{geometry}
\title{My Document}
\author{Amelia Carter}
\begin{document}
\maketitle
\section{Page 1}
Introduction --- 20\% of the mark \& the key question:
why do firms fail?
\section{Page 2}
...
\end{document}

Notice what happened: the % became \%, the & became \&, and the em dash became ---, which is how LaTeX writes a dash. Paste this into Overleaf, press Recompile, and you get a clean two-section PDF. The \section{Page 1} headings are placeholders — rename them to real titles as you tidy the document.

What to check before you convert

🔍 Selectable text first

Try selecting a sentence with your mouse in a PDF reader. If you cannot select individual words, the PDF is a scan and this tool will report “no selectable text found” — run OCR first.

📄 Compile the .tex file straight away

Open it in Overleaf and press Recompile before editing anything — if it compiles clean, the conversion worked.

✏️ Rename the page sections

“Page 1”, “Page 2” headings are placeholders. Replace them with real titles — “Introduction”, “Method”, “Results” — so the document reads like a paper, not a scan log.

📊 Rebuild tables by hand

Tables come out as plain text lines. Wrap small ones in a tabular environment; for big ones, extract CSV with our free extract-tables tool.

Straight talk: limits

📷 Scanned PDFs need OCR first

Scans contain images, not characters. This converter reads the text layer only, so a scanned paper returns “no selectable text found”. Free OCR options: OCR.space, OnlineOCR.net, or the Adobe Scan mobile app — then convert the OCR'd PDF here.

🧮 Maths and equations become plain text

An equation in the PDF is stored as positioned symbols, not as LaTeX maths, so it appears as a jumble of characters in the output. Re-typeset equations by hand in $...$ or an equation environment.

🗂️ Multi-column layouts may read out of order

Two-column papers sometimes extract line by line across both columns. If the order looks wrong, tidy the text in the editor after conversion.

PDF to LaTeX Converter FAQ

What does this PDF to LaTeX converter actually do?

It reads the selectable text out of your PDF, escapes every character that is special in LaTeX, and wraps the result in a complete, compilable .tex document — document class, title, one section per PDF page. Download the .tex file and compile it with Overleaf or pdflatex.

Is the .tex file it makes compilable?

Yes. The output is a complete LaTeX document: \documentclass{article}, the inputenc and geometry packages, \title, \maketitle, one \section per PDF page, and \end{document}. Paste it into Overleaf or save it as document.tex and run pdflatex — it compiles without edits.

Can it convert a scanned PDF?

No. Scanned PDFs contain images of pages, not selectable text, and this tool does not do OCR. If it reports “no selectable text found”, run OCR first (OCR.space, OnlineOCR.net, or Adobe Scan), then convert the OCR'd PDF here.

Does it keep the PDF's formatting, tables and images?

No — it converts the extracted text only. Bold, italics, tables, figures and equations become plain text in reading order. That is the honest limit of text-based conversion; rebuilding tables and maths as LaTeX environments is a manual step afterwards.

Is this PDF to LaTeX converter really free?

Yes — unlimited PDFs, any number of pages, forever. No trial, no watermark, no account, no payment details. It runs entirely in your browser, so your paper or thesis draft is never uploaded to any server.

Will my PDF be uploaded anywhere?

No. The PDF is read on your own device with a JavaScript library — the file and its contents are never sent to any server. Close the tab and everything is gone.

Why do the special characters in my text need escaping?

LaTeX gives ten characters a special meaning: \ { } $ & % # _ ^ and ~. A plain % in your text would start a comment and hide the rest of the line; a plain & would break a table. The converter replaces each one with its safe LaTeX form, so the text compiles exactly as written.

🔒 Your files stay with you

Sources & trust

LaTeX escaping follows the LaTeX2e special-character rules documented in the LaTeX Project's user guide; text extraction runs on pdf.js 3.11.174 in your browser. Compile the output with Overleaf or any standard TeX distribution (TeX Live, MiKTeX). Figures in examples are illustrative. By Amir Shahzad · Last updated 24 November 2026.

You may also need

Computer keyboard keys
📝

Free Extract Text from PDF

Pull the plain text out of any PDF first, then convert it.

Open tool →
Markdown document
⬇️

Free PDF to Markdown Converter

The same extracted text as clean Markdown instead of LaTeX.

Open tool →
Books on a shelf
📚

Free Bibliography PDF Maker

Build the reference list your LaTeX paper needs, as a PDF.

Open tool →

Card photos: Kskhh / Wikimedia Commons, CC BY-SA 4.0 · Tirza van Dijk, Wikimedia Commons, CC0 · Mertbiol / Wikimedia Commons, CC0

Share: WhatsApp logoWhatsApp Facebook logoFacebook Telegram logoTelegram X logoX Pinterest logoPinterest

Educational content only. Nothing on this site is legal or professional advice.