Back to Tools

LaTeX Converter: Convert To and From LaTeX

Every free online LaTeX converter in one place. Convert Markdown, HTML, MathML, Mermaid, tables, PDFs and images to LaTeX, or convert LaTeX to Markdown, PNG, Word and PDF. No account, no install.

TO LATEX

Convert to LaTeX

Markdown to LaTeX

Markdown (.md) LaTeX documentAI

Turns headings, lists, emphasis, links, code blocks, tables and $math$ from Markdown into a compilable LaTeX document with the right packages in the preamble. Ideal when you draft in Obsidian, Notion or a README and need to hand in a typeset PDF.

Open converter

HTML to LaTeX

HTML markup LaTeXAI

Maps HTML headings, paragraphs, lists, tables, links and inline formatting onto LaTeX equivalents, keeping the document structure while dropping scripts, styles and navigation chrome.

Open converter

MathML to LaTeX

MathML (Presentation) LaTeX mathAI

Converts MathML trees (mrow, mfrac, msup, msqrt, mtable and friends) into clean amsmath syntax so formulas from Word or the web can be reused in LaTeX papers.

Open converter

Mermaid to LaTeX

Mermaid diagram code TikZ / LaTeXAI

Rewrites Mermaid flowcharts, graphs and sequence diagrams as TikZ pictures that compile inside a LaTeX document, including node shapes, labels and arrows.

Open converter

Table to LaTeX

CSV, JSON, Excel LaTeX tabular

Upload a CSV, JSON or Excel file and get a booktabs-styled tabular environment with proper column alignment and escaped special characters, ready to paste into a table float.

Open converter

PDF to LaTeX

PDF file LaTeX sourceAI

Extracts the text, structure and equations of a PDF and reconstructs LaTeX source you can edit. Best on papers and reports that were themselves typeset with LaTeX.

Open converter

Image to LaTeX

Image or photo of math LaTeX mathAI

Recognises printed or handwritten equations in an image and returns the LaTeX, with a live rendered preview so you can check every symbol before copying.

Open converter

Equation to LaTeX

Plain-text description or image LaTeX mathAI

Describe an equation in words ("the quadratic formula", "a 3 by 3 identity matrix") or upload a picture of it and get correct amsmath code back.

Open converter

Image to TikZ

Diagram image TikZ codeAI

Turns a drawing, sketch or screenshot of a diagram into editable TikZ code so figures stay sharp, match your document font and can be tweaked in source.

Open converter

arXiv to LaTeX

arXiv paper ID or URL LaTeX project

Pulls the LaTeX source of an arXiv submission into an editable project so you can read the real source, reuse macros and figures, or start a follow-up paper from it.

Open converter
FROM LATEX

Convert from LaTeX

Compare the LaTeX converters

ConverterInputOutputAI-powered?Best for
Markdown to LaTeXMarkdown (.md)LaTeX documentYesNotes, READMEs and blog drafts headed for a paper or thesis
HTML to LaTeXHTML markupLaTeXYesWeb pages, CMS exports and documentation sites
MathML to LaTeXMathML (Presentation)LaTeX mathYesEquations exported from Word, MathType, Maple or browsers
Mermaid to LaTeXMermaid diagram codeTikZ / LaTeXYesFlowcharts and sequence diagrams from Markdown docs
Table to LaTeXCSV, JSON, ExcelLaTeX tabularNo (deterministic)Data tables, results tables and spreadsheets
PDF to LaTeXPDF fileLaTeX sourceYesRecovering editable source from a typeset paper
Image to LaTeXImage or photo of mathLaTeX mathYesHandwritten notes, whiteboards and textbook screenshots
Equation to LaTeXPlain-text description or imageLaTeX mathYesWriting formulas you can describe but not type
Image to TikZDiagram imageTikZ codeYesRedrawing sketches and figures as vector graphics
arXiv to LaTeXarXiv paper ID or URLLaTeX projectNo (deterministic)Studying or building on a published preprint
LaTeX to MarkdownLaTeX document or snippetMarkdown (.md)YesREADME files, Notion, Obsidian, GitHub and blogs
LaTeX to PNGLaTeX equation or documentPNG imageNo (deterministic)Slides, Word, Google Docs, Notion and web pages
LaTeX to WordLaTeX documentWord (.docx)YesJournal submissions, track-changes reviews, editable hand-ins
LaTeX to PDFLaTeX documentPDFNo (deterministic)Compiling and checking a document without installing TeX

Choosing the right converter

Start from what you have. If it is text with structure (a Markdown file, a web page, a Word export), use the matching to LaTeX converter and then open the result in the LaTeX preview to compile it. If it is a picture of math, a sketch or a PDF, the image, PDF and equation converters reconstruct source you can edit. If you already have LaTeX and someone else needs another format, pick by destination: Markdown for wikis and GitHub, Word for reviewers and submission portals, PNG for slides and documents that cannot typeset math, and PDF for the final, typeset output.

The AI-powered converters trade exactness for flexibility: they handle custom macros, unusual packages and messy input, but you should proofread the output. The deterministic converters (tables, arXiv, PNG, PDF) never invent content and are the right choice when the input is already well-formed. Need something not listed here, such as a TikZ diagram from a description or a BibTeX entry from a DOI? See the full list of LaTeX tools.

Frequently asked questions

What is a LaTeX converter?
A LaTeX converter is a tool that translates between LaTeX source and another format. Converters to LaTeX take Markdown, HTML, MathML, Mermaid, spreadsheets, PDFs or images and produce .tex code; converters from LaTeX take .tex source and produce Markdown, PNG images, Word documents or PDFs. This page collects all of Octree’s free converters in both directions.
Which converters use AI and which are deterministic?
Structure-heavy conversions (Markdown, HTML, MathML, Mermaid, PDF, images, equations and LaTeX to Markdown or Word) use an AI model because the mapping is ambiguous and needs judgement. Table to LaTeX, arXiv to LaTeX, LaTeX to PNG and LaTeX to PDF are deterministic: they parse or compile your input exactly and give the same output every time.
How do I convert LaTeX to Word or PDF for free?
For Word, open the LaTeX to Word converter, paste your document and download document.docx. For PDF, open the LaTeX preview, paste your document and export the compiled PDF. Both run on a full TeX Live installation on our servers and require no account.
Can I convert a whole paper with figures and a bibliography?
Text, sections, lists, tables and equations convert well in every direction. Figures are the main limitation: image files are not uploaded with the source, so converters keep the caption and reference. For bibliographies, LaTeX to Word keeps citation keys and a References list; for full BibTeX resolution, use the Citation Generator to create entries and compile in the LaTeX preview.
Is there a limit on document size?
Each converter accepts a typical paper, chapter or long README. The AI-powered converters cap input around 60,000 characters per request; split a thesis by chapter if it is larger. The compile-based tools (PNG and PDF) accept any document that compiles within the server time limit.
Math poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen