Back to Portfolio
    AI & Cloud
    AI
    LLM
    Document Conversion
    Markdown
    OCR
    SaaS
    AWS

    Dox2MD: document-to-Markdown converter for LLMs

    Dox2MD is Code Industries' own free web tool that turns PDFs, Word and ODT files, scans and phone photos into clean Markdown, cutting the tokens an AI model needs by up to 93% while keeping headings, lists and tables. It also turns Markdown back into a finished, templated PDF.

    Client

    Code Industries (in-house product)

    Our Role

    Product design, full-stack development, cloud deployment

    View Live Project
    Dox2MD: document-to-Markdown converter for LLMs

    The Challenge

    Teams feed AI models PDFs, Word files and scanned paperwork every day, and each of those formats carries layout data, markup and page images the model still has to pay for in tokens. Sending a three-page PDF can cost 4,500 to 9,000 tokens, most of it overhead. Plain-text extraction is cheaper, but it throws away the headings, lists and tables the model needs to understand the document. People also needed a way to do this without uploading sensitive files to a service that keeps them.

    Our Solution

    We designed and built Dox2MD, a free converter that turns PDF, DOCX, ODT and image files into clean Markdown. It reads document structure from font sizes, bold text and layout, so headings, lists and tables survive the conversion, and it runs OCR on scanned pages and phone photos. Every result shows its token count and can be edited in place, copied or downloaded as .md. A second tool goes the other way: it detects whether a Markdown file is a report, CV, letter or general document and lays it out as a PDF with the matching template. Files are processed in memory and never stored, uploads are screened and parsed in an isolated process, and the app is deployed on AWS Lightsail behind AWS WAF.

    Project Results

    Up to 93% fewer LLM tokens

    A 3-page PDF report reduced to 411 tokens of Markdown

    7 input formats, including OCR for scans

    Zero files stored: processed in memory

    Free, with no sign-up, cookies or analytics

    Technologies Used

    AWS Lightsail
    AWS WAF
    OCR
    Markdown

    Key Features

    • PDF, DOCX, ODT, JPG, PNG, TIFF and WEBP to Markdown
    • OCR for scanned pages and phone photos
    • Structure detection for headings, lists and tables
    • Token count shown on every result
    • In-place Markdown editing, copy and .md download
    • Markdown to PDF with auto-detected templates (report, CV, letter, general)
    • Uploads screened and parsed in an isolated process
    • Files processed in memory, never written to disk

    Ready to Start Your Project?

    Let's discuss how we can help transform your business with cutting-edge automation solutions.