# File Converter

> Converts files between formats (e.g., PDF to text, image OCR, docx to pdf) using system tools available in bash (like pandoc, tesseract, ImageMagick, or pdf2text).

- Skill: `next-open-ai/file-converter` (Agent Skill)
- Install (CLI): `npx skillmds@latest add next-open-ai/file-converter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/next-open-ai/file-converter/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: next-open-ai (https://skillmd.com/u/next-open-ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/next-open-ai/file-converter

---


# File Converter Skill

Use this skill to convert a file from one format to another or extract content from files.

## Workflow

1. Identify the source file format and the target format.
2. Determine which system tool is available and best suited for the conversion:
   - For document conversion (Markdown, HTML, Word): `pandoc`
   - For images (resize, format change): `convert` or `magick` (ImageMagick)
   - For PDF text extraction: `pdftotext`
   - For OCR on images: `tesseract`
3. Use the `bash` tool to check if the required tool is installed (e.g., `which pandoc`). If not, inform the user they need to install the dependency.
4. Execute the conversion command via `bash`.
5. Verify the output file exists and has content, then notify the user.

