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.

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.
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.
\title and \author of the new document; leave the author blank to skip it..tex document.document.tex and run pdflatex — it compiles without edits.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 PDF | What it means in LaTeX | Escaped 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{} |
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.
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.
Open it in Overleaf and press Recompile before editing anything — if it compiles clean, the conversion worked.
“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.
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.
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.
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.
Two-column papers sometimes extract line by line across both columns. If the order looks wrong, tidy the text in the editor after conversion.
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.
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.
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.
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.
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.
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.
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.
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.

The same extracted text as clean Markdown instead of LaTeX.
Open tool →Card photos: Kskhh / Wikimedia Commons, CC BY-SA 4.0 · Tirza van Dijk, Wikimedia Commons, CC0 · Mertbiol / Wikimedia Commons, CC0
Educational content only. Nothing on this site is legal or professional advice.