Markdown Converter

Converts PDFs, Word, PowerPoint and Excel files, web pages, images, audio and YouTube links into clean Markdown text your AI can work with.

Office & Documentsmarkdownfile conversionpdfdocumentsby steipete7.4kGitHub

What it is

Markdown Converter turns almost any document into Markdown, a plain-text format with simple marks for headings, lists and tables that AI tools read easily. It is a short skill from Peter Steinberger's agent scripts that wraps MarkItDown, an open-source conversion tool from Microsoft. It helps office workers, students and writers who have reports, slide decks, spreadsheets or e-books and want the AI to summarize, quote or rework what is inside.

Rather than letting the AI guess at a file's contents, the skill has it run MarkItDown through uvx, a command that fetches the converter on first use so there is nothing separate to install. It handles PDF, Word, PowerPoint, Excel, HTML, CSV, JSON, XML, EPUB books and ZIP archives, reads image metadata and text in images, transcribes audio, and pulls text from YouTube links. Headings, tables, lists and links are kept, and the result can be shown in the chat or saved as a .md file.

You get a Markdown version of your file to keep, edit or feed into other work. Complex or scanned PDFs can come out messy. For those it can use Azure Document Intelligence, a paid Microsoft cloud service you would need to set up yourself. The first run is slower while it downloads what it needs, and later runs are faster.

What it can do

  • Converts Word, PowerPoint and Excel files into Markdown with headings, tables and lists kept.
  • Extracts text from PDFs, with optional Azure Document Intelligence for hard-to-read pages.
  • Turns web pages and CSV, JSON or XML data files into readable Markdown.
  • Reads image metadata and text in images, and transcribes speech in audio files.
  • Pulls text from YouTube links and EPUB e-books, and works through every file inside a ZIP archive.
  • Shows the result in the chat or saves it to a .md file you name.

When to use it

  • A client sent a 30-page Word proposal and you want the AI to pull out every deadline and price.
  • You have a lecture slide deck as a .pptx file and want it as notes you can edit and study from.
  • Your manager shared an Excel sheet and you need its tables in a form the AI can compare and summarize.
  • You downloaded a batch of PDFs as a ZIP file and want them all as text before asking questions about them.

How it works

  1. 1You point the agent at a file or link and say you want it as Markdown.
  2. 2The agent runs MarkItDown through uvx, which downloads the converter and its extras the first time and reuses them after that.
  3. 3MarkItDown detects the file type and extracts the text and structure: headings, tables, lists and links.
  4. 4If a PDF converts badly and you have an Azure Document Intelligence endpoint, the agent can rerun it through that service.
  5. 5The Markdown is shown to you or saved to an output file, ready for summarizing, editing or reuse.

Try asking

“Convert report.docx to Markdown and save it as report.md”
“Turn this PowerPoint into Markdown notes I can edit”
“Extract the tables from data.xlsx as Markdown”
“Convert every file in this ZIP to Markdown so you can summarize them”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/steipete/agent-scripts/tree/main/skills/markdown-converter
pnpm
pnpm dlx skills add https://github.com/steipete/agent-scripts/tree/main/skills/markdown-converter

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the markdown-converter folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/steipete/agent-scripts.git
mkdir -p ~/.claude/skills
cp -r agent-scripts/skills/markdown-converter ~/.claude/skills/markdown-converter

Then just ask in plain language, for example: “Convert report.docx to Markdown and save it as report.md”