PDFJadoo › Convert › PDF to Markdown
The PDFJadoo genie with his golden lamp, rising in a swirl of gold magic

PDF to Markdown, clean and structured

For notes, docs sites and AI workflows: your PDF's structure — headings, lists, paragraphs — as tidy Markdown you can paste anywhere.

Runs 100% in your browserFiles never uploadFree · no sign-up
Drop your PDF on the lamp

One PDF file with a text layer (scans need OCR PDF first).

🔒 Private by design: this tool runs entirely in your browser. Your file is never uploaded, never stored, and works even with the internet off.

How to convert a PDF to Markdown online

  1. Drop your PDF onto the lamp.
  2. Press “Convert to Markdown” — structure is detected from font sizes and list markers.
  3. Copy the Markdown or download the .md file.

The converter reads the text layer, promotes larger lines to # headings, recognizes bullet and numbered lists, and joins wrapped lines into paragraphs. The result drops straight into Notion, Obsidian, GitHub, or any AI chat as clean, structured context.

Related wishes

Or browse the full deck of 130 free PDF tools.

PDF to Markdown — fair questions

How are headings detected?

Lines set in noticeably larger type than the body become headings — the same signal a human reader uses.

What about tables?

Simple aligned tables are kept as text lines; complex tables convert best via PDF to Excel.

My PDF is a scan — will it work?

Scans have no text layer. Use OCR PDF first.

Is anything uploaded?

No — conversion is fully local.

Back to All Tools
"; PJ.setProgress(100);PJ.setStatus("Done — editable .doc rebuilt from "+pages.length+" page(s), "+totalWords.toLocaleString()+" words."); PJ.showDownload(new Blob(["\ufeff"+docHtml],{type:"application/msword"}),PJ.baseName(file)+".doc","⬇ Download the .doc"); } if(MODE==="rtf"){ const escR=s=>s.replace(/\\/g,"\\\\").replace(/\{/g,"\\{").replace(/\}/g,"\\}").replace(/[^\x20-\x7E]/g,c=>"\\u"+c.charCodeAt(0)+"?"); let rtf="{\\rtf1\\ansi\\deff0{\\fonttbl{\\f0\\fswiss Helvetica;}}\\f0\\fs22\n"; pages.forEach(p=>{structure(p).forEach(b=>{ if(b.t==="h")rtf+="\\pard\\keepn\\b\\fs34 "+escR(b.text)+"\\b0\\fs22\\par\n"; else if(b.t==="li")rtf+="\\pard\\li360 \\bullet\\tab "+escR(b.text)+"\\par\n"; else rtf+="\\pard "+escR(b.text)+"\\par\n"; })}); rtf+="}"; PJ.setProgress(100);PJ.setStatus("Done — RTF rebuilt from "+pages.length+" page(s), "+totalWords.toLocaleString()+" words."); PJ.showDownload(new Blob([rtf],{type:"application/rtf"}),PJ.baseName(file)+".rtf","⬇ Download the .rtf"); } if(MODE==="epub"){ const esc=s=>s.replace(/&/g,"&").replace(//g,">"); const bookTitle=PJ.baseName(file); const chapters=[];let cur={title:bookTitle,blocks:[]}; const pushB=b=>{cur.blocks.push(b)}; pages.forEach(p=>{structure(p).forEach(b=>{ if(b.t==="h"&&cur.blocks.length>3){chapters.push(cur);cur={title:b.text,blocks:[b]}} else pushB(b); if(cur.blocks.length>=80){chapters.push(cur);cur={title:bookTitle+" (continued)",blocks:[]}} })}); if(cur.blocks.length)chapters.push(cur); const zip=new JSZip(); zip.file("mimetype","application/epub+zip",{compression:"STORE"}); zip.file("META-INF/container.xml",""); let manifest="",spine="",nav=""; chapters.forEach((ch,i)=>{ const id="ch"+(i+1);manifest+=" "; spine+="";nav+="
  • "+esc(ch.title)+"
  • "; let body="";ch.blocks.forEach(b=>{if(b.t==="h")body+="

    "+esc(b.text)+"

    ";else if(b.t==="li")body+="

    • "+esc(b.text)+"

    ";else body+="

    "+esc(b.text)+"

    "}); zip.file("OEBPS/"+id+".xhtml",""+esc(ch.title)+""+body+""); }); zip.file("OEBPS/nav.xhtml","Contents"); manifest+=" "; const uuid="urn:uuid:"+Date.now().toString(16)+"e"+Math.floor(Math.random()*1e6)+"-pdfjadoo"; zip.file("OEBPS/content.opf",""+esc(bookTitle)+"en"+uuid+""+new Date().toISOString().replace(/\.\d+Z$/,"Z")+""+manifest+""+spine+""); const zb=await zip.generateAsync({type:"uint8array"}); PJ.setProgress(100);PJ.setStatus("Done — EPUB built from "+pages.length+" page(s) into "+chapters.length+" chapter(s), "+totalWords.toLocaleString()+" words."); PJ.showDownload(new Blob([zb],{type:"application/epub+zip"}),PJ.baseName(file)+".epub","⬇ Download the .epub"); } }catch(e){PJ.setStatus("Something went wrong: "+e.message,true)} PJ.setProgress(null);btn.disabled=false; });