How to convert selectable PDF text to Markdown

Export PDF text into a Markdown file with numbered page headings, then rebuild the structure you need for editing and reuse.

Open the tool

A PDF is easy to distribute, but it can be awkward to turn back into something you can edit. Copy an entire paragraph from a two-column document and you might get the second column first, a footer in the middle, or a line break after every few words. If the goal is to reuse the text in a wiki or notes app, it helps to start with an editable file that keeps track of which text came from each page.

TinyToolbox PDF to Markdown extracts selectable text and groups it under numbered Markdown headings. You can download the result as an editable Markdown file and compare each section with the source. The page headings provide references for that review. Add the source’s topic headings, lists, links, and tables as needed once you know what the extraction preserved.

Check whether the PDF contains selectable text

Open the PDF and try to select a short sentence from the page itself. Paste it into an empty text editor. If the words come through in a reasonable order, the document has text the extractor may be able to use. Repeat the test on a later page. A packet can start with a digitally generated cover and end with scanned attachments that contain only images.

Watch for a viewer that offers its own text recognition. You may be able to select words in a scan because the viewer recognizes them on screen. The file itself may still lack a saved text layer. Testing the conversion on a representative page will show whether that text is available in the PDF you selected.

You can also try searching for a word that appears in a heading. If the viewer finds that word in some sections and misses it in others, check those sections separately in the Markdown result. A search result is useful evidence about those pages. It does not ensure that figure labels, handwritten notes, or text inside an embedded image will be extracted.

If a page has no underlying text, use a separate optical character recognition workflow where appropriate. Compare the recognized text with the visible source before reusing it. Recognition can confuse similar characters, especially in dates, sums, or reference IDs. Once you have a PDF with a saved text layer, run the converter on that copy if you want page-based Markdown.

Run PDF to Markdown in TinyToolbox

  1. Open PDF to Markdown.
  2. Choose the source document under PDF file.
  3. Select Run tool and check the text result.
  4. Select Download result to save pdf-text.md.
  5. Open the file in a text or Markdown editor and compare it with the source PDF.

The tool runs in your browser. It accepts a PDF up to 150 pages within the standard 25 MB input limit. For a larger source, use Extract PDF Pages to copy the portions you need or Split PDF to make smaller files. Record which pages each part contains. The generated headings count from the start of each input file, so an extract covering original positions 51–60 starts at Page 1.

The extractor adds a page heading even if that page has no selectable text. A heading followed immediately by the next one is a reason to look at the source. The page could be blank, or it could contain a picture, diagram, or scan that needs separate handling. On a cover with words drawn into a logo, you might see the page heading alone even though the original clearly displays a title.

Read the page headings as references

In the sample below, the converter has grouped a guide into two physical pages. The heading numbers correspond to what a PDF viewer counts, including a cover or any unnumbered pages.

## Page 1

Workshop notes
Bring a notebook and leave room for the group exercise.

## Page 2

Morning session
Meet in the main room at 9:00.

Use these sections while checking the text. If you find an odd line break in the second section, open the second physical page of the PDF. The printing on that page could call it page 1 if the cover did not carry a number. For an excerpt, keep a map of the original positions until review is complete.

Once the text has been checked, choose whether to keep the generated headings. They can be useful for a citation or a page-by-page transcription. For a wiki article, replace them with headings that describe the topics, or record a page reference next to any passage a reader may need to trace. If a section starts on one page and continues on the next, you can combine its text after confirming that you have both parts in the correct order.

Rebuild the paragraphs and lists that readers need

Open the PDF beside the Markdown file. Read the first passage aloud or scan it line by line for punctuation and word order. An extractor reads the text items stored in the PDF. In a simple single-column document this can be close to reading order. In a wider layout, it can place a sidebar between two halves of a paragraph or interleave parts of adjacent columns.

Repair those passages against the PDF rather than deciding from the extracted text alone. If a line ends with the first half of a hyphenated word, check whether the hyphen belongs to the spelling. Join line wraps within a paragraph, and leave a blank line where a new paragraph begins. Keep meaningful pauses in verse, examples, or addresses if the source depends on its line breaks.

Next, distinguish real list entries from repeated bullets or symbols that merely decorate the page. In a Markdown editor, write each genuine list item on its own line and preview the result. If a list item contains a second sentence, keep it with its parent instead of turning it into a separate bullet. When a numbered sequence resumes on another page, check whether the number itself is part of an instruction or just a visual count.

Repeated page headers and footers often appear in extracted text. A footer might contain a revision date, company name, or printed page number after every section. Keep relevant context once where it belongs in your editable document. If the repeated text carries a notice that needs to remain with each excerpt, preserve it alongside the passages to which it applies.

Check the escaped punctuation

The converter protects several punctuation characters so they appear as text in Markdown. For example, a literal asterisk, backtick, bracket, or pipe may appear with a backslash in the downloaded source. Ampersands and angle brackets can appear as entities such as & and <. These spellings often render as the ordinary characters in a Markdown preview.

Check the rendered result before removing escape characters broadly. A backslash in front of a literal asterisk can be intentional, while the same asterisk without the escape can start formatting in some contexts. If you want an extracted phrase to become a heading, list, or emphasized term, add that Markdown syntax deliberately. For a code example, compare the displayed characters with the source and use an appropriate code block if you need the exact text to be easy to copy.

The conversion creates a useful starting document and does not infer every kind of Markdown structure. Exports that contain numbered or dash-prefixed lines can still be interpreted by a renderer in ways you did not intend. Test the file in the Markdown application where it will be used, since renderers can vary in how they interpret a line or table.

Reconstruct a small table from the source

Consider a three-column schedule with columns for time, room, and session. The Markdown result may contain the words and times without their original cell boundaries. In a PDF with spaces between columns, the text can look like one long paragraph. A wide table can also extract in a different order than a reader expects.

Use the visible table as the reference. Write down the three headings, then rebuild one row at a time. Check a value such as 10:30 against both the room and session on the same original row. A table that looks neatly formatted can still pair a time with the wrong room if a cell moved during extraction. If the original uses headers that span multiple rows, repeat the label where that makes each row understandable on its own.

Add a Markdown table only if the destination supports it. For a short schedule, a list of times and room names can be easier to review. If you need to preserve the table’s exact layout for printing, point readers to the original PDF alongside the editable text. The conversion does not embed the table’s original visual design or diagrams.

An extracted paragraph may contain the words Register here without the address stored in the PDF’s link annotation. When the link matters, open the source and verify its destination. Extract PDF Links can list external URLs alongside their page positions. Match each address to the specific phrase it belongs to before inserting it into the Markdown. A page can have several links with similar labels.

Check internal cross-references too. A note that says See page 12 might refer to the printed page number or to a section no longer present in your extract. Preserve the reference if the original PDF remains part of the handoff. If the Markdown will stand alone, rewrite the reference to name the relevant section or provide the source link where appropriate.

If the original shows an address as ordinary text, the extractor may preserve it as words, while different Markdown tools can vary in whether they make it clickable. Open the rendered result and try the links that readers will rely on. Check that the selected text still identifies the destination clearly.

Save the editable result and verify it at the destination

Review the first and last sections and any page with columns, an image, or a table. Search for a distinctive word from a later page to check that the extract reaches the end of the material you need. For a long document, work through the parts in order and mark which original pages you verified. Compare names, amounts, and short codes directly with the PDF instead of relying on a general read-through.

Save the edited Markdown under a name that identifies the source and purpose. If you plan to create a revised PDF, open the Markdown in Markdown to PDF, check its preview, and review the generated pages before downloading. The revised PDF follows your new headings and layout. Keep the original PDF when readers need its page references, illustrations, or approved formatting.

Read the rendered result as well as the Markdown source

After cleaning up an extracted procedure, open it in the Markdown viewer your readers use. A line in the source can look like an ordinary paragraph and render as a list item if it begins with a number and punctuation. Conversely, an escaped list marker can remain visible as literal text. Compare the rendered procedure with the original PDF and check that the steps, headings, and notes have the intended roles.

If an instruction spans two PDF pages, confirm that your edited paragraph joins the right pieces. Keep the page references in notes when removing an intermediate page heading from the published text. This lets another editor compare your reconstruction with the source later. Before you share the Markdown, test any restored link in the rendered version and review the surrounding text so the destination is clear.