pdf to yaml
Upload Your PDF File

or drop your file anywhere on this page

Processed in your browser, never uploaded

How to Convert PDF to YAML

  1. Add your PDF – Drop the file into the box above or click "Select PDF File".
  2. Choose the pages – Keep "all" or enter pages such as 1-5, 7 in "Pages to convert" – or click the thumbnails.
  3. Choose the structure – Under "Output structure" pick "Structured: headings, paragraphs, lists, tables", "Plain text per page", "Text lines with positions" or "Document and page information only", and decide what to include.
  4. Convert and save – Click "Convert to YAML", then "Download .yaml" or "Copy YAML".

PDF to YAML Converter: What You Get

When to Convert PDF to YAML

PDF to YAML Converter: Good to Know

PDF to YAML – Frequently Asked Questions

How do I convert a PDF to YAML?

Add the PDF, choose the pages and the output structure, click "Convert to YAML" and download the .yaml file.

What does the YAML look like?

A document section with the file and PDF information, and a pages list. Each page has its number, size and character count, and then blocks, text or lines depending on the structure you chose.

Is the output valid YAML?

Yes. It is created with a YAML library and read back as a check. Text that could be misread, such as yes or no, is quoted.

Can I get the position of the text?

Yes. Choose "Text lines with positions", or tick the position option for structured blocks. Positions are in PDF points, measured from the top left of the page.

Why is no text found?

The PDF is probably scanned, so its pages are images. Run OCR PDF first and convert the result.

Is my file uploaded?

No. The conversion runs in your browser, so the PDF stays on your device.

Is it free?

Yes – no sign-up and no watermark.

Not sure which format fits your goal? See Convert PDF Guide.