Supported Formats
DocuHub supports 108+ file formats for conversion, compression, and PDF operations.
Overview
The DocuHub API can convert, compress, merge, split, and manipulate files across 108+ formats. This page provides a complete reference of every supported source and target format, organised by category.
Every tool listed below is available through the API. Pass the appropriate parameters to the /v1/convert or /v1/pdf/* endpoints to use them programmatically.
API Format Strings
When calling the API, specify the target format using the output_format parameter as a lowercase string matching the target file extension.
curl -X POST https://api.docuhub.live/v1/convert \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "file=@document.pdf" \ -F "output_format=docx" # Accepted values: "docx", "pdf", "png", "jpg", "xlsx", # "pptx", "txt", "md", "json", "html", "csv", ...
Common Conversions
These are the most frequently used conversion paths:
| Source | Target | Description |
|---|---|---|
| DOCX | Extract editable Word documents from PDFs | |
| PNG | Render PDF pages as high-resolution images | |
| DOCX | Create portable PDFs from Word files | |
| Images | Combine images into a single PDF document | |
| Text | Extract plain text content from PDFs |
Format Categories
Convert Documents
Transform documents between different formats with high accuracy.
| Source | Target | Description |
|---|---|---|
| Make scanned PDF searchable | ||
| doc | Convert PDF to Word document | |
| xlsx | Convert PDF to Excel document | |
| pptx | Convert PDF to PowerPoint document | |
| txt | Convert PDF to Text document | |
| rtf | Convert PDF to RTF document | |
| html | Convert PDF to HTML document | |
| xml | Convert PDF to XML document | |
| json | Convert PDF to JSON document | |
| csv | Convert PDF to CSV document | |
| docx | Convert Word to PDF document | |
| xlsx | Convert Excel to PDF document | |
| pptx | Convert PowerPoint to PDF document | |
| txt | Convert Text to PDF document | |
| rtf | Convert RTF to PDF document | |
| odt | Convert OpenOffice Writer to PDF document | |
| ods | Convert OpenOffice Calc to PDF document | |
| odp | Convert OpenOffice Impress to PDF document | |
| epub | Convert EPUB to PDF document | |
| mobi | Convert MOBI to PDF document | |
| html | Convert HTML to PDF document | |
| xml | Convert XML to PDF document | |
| jpg | Convert PDF pages to JPG images | |
| jpg | Convert JPG images to PDF | |
| png | Convert PDF pages to PNG images | |
| png | Convert PNG images to PDF | |
| webp | Convert PDF pages to WebP images | |
| webp | Convert WebP images to PDF | |
| tiff | Convert PDF pages to TIFF images | |
| tiff | Convert TIFF images to PDF | |
| bmp | Convert PDF pages to BMP images | |
| bmp | Convert BMP images to PDF | |
| heic | Convert PDF pages to HEIC images | |
| heic | Convert HEIC images to PDF | |
| gif | Convert PDF pages to GIF images | |
| gif | Convert GIF images to PDF | |
| avif | Convert PDF pages to AVIF images | |
| avif | Convert AVIF images to PDF | |
| md | Convert Markdown to PDF | |
| djvu | Convert DJVU to PDF | |
| csv | Convert CSV to PDF | |
| heif | Convert HEIF to PDF | |
| heif | Convert PDF to HEIF | |
| eml | Convert email files (.eml) to PDF for archiving and legal discovery. | |
| msg | Convert Microsoft Outlook .msg email files to PDF for archiving and compliance. | |
| vsdx | Convert Microsoft Visio diagrams (.vsdx) to PDF without Visio installed. | |
| dwg | Convert AutoCAD DWG drawings to PDF for sharing with clients without AutoCAD. | |
| srt | Convert SRT subtitle files to formatted PDF transcripts for accessibility and repurposing. | |
| vtt | Convert WebVTT (.vtt) subtitle files to PDF transcripts. | |
| mobi | epub | Convert MOBI ebooks to EPUB for Apple Books, Kobo, and non-Kindle readers. |
| fb2 | Convert Fiction Book 2.0 (.fb2) ebooks to PDF for universal reading. | |
| cbr | Convert CBR comic book archives to PDF for reading on any device. | |
| hwp | Convert Hangul Word Processor (.hwp) files to PDF without HWP installed. | |
| dcm | jpg | Convert DICOM medical images (.dcm) to JPG for sharing X-rays, CT scans, and MRIs. |
| html | docx | Convert HTML files to editable Word DOCX documents with formatting preserved. |
| svg | Convert SVG vector graphics to high-quality PDF for printing and sharing. | |
| wpd | Convert WordPerfect .wpd documents to PDF — essential for legal and government archives. | |
| wpd | docx | Convert WordPerfect .wpd files to editable Word DOCX format. |
| abw | Convert AbiWord .abw document files to PDF for sharing and archiving. | |
| abw | docx | Convert AbiWord .abw documents to editable Microsoft Word DOCX files. |
| sxw | Convert legacy StarOffice .sxw files to PDF for accessing old document archives. | |
| rtf | docx | Convert Rich Text Format .rtf files to editable Microsoft Word DOCX documents. |
| Convert to ISO-standard PDF/A for long-term archiving. | ||
| pcl | Convert PDF to PCL format for HP printer compatibility. | |
| tiff | Convert PDF to TIFF format optimized for fax transmission. |
Compress Files
Reduce file sizes while maintaining quality.
| Source | Target | Description |
|---|---|---|
| Reduce PDF file size online |
Merge Documents
Combine multiple files into a single document.
| Source | Target | Description |
|---|---|---|
| Combine multiple PDFs into one | ||
| Interleave pages from two PDFs for double-sided scan reassembly. |
Split Documents
Extract pages or split documents into multiple files.
| Source | Target | Description |
|---|---|---|
| Extract pages from PDF | ||
| Auto-split when specific text changes between pages. | ||
| Split into files under a maximum size for email attachments. | ||
| Split two-page scans into individual pages. |
PDF Security
Protect or unlock PDF documents with password encryption.
| Source | Target | Description |
|---|---|---|
| Add password encryption to your PDF documents | ||
| Encrypt PDF with password | ||
| Remove PDF password security | ||
| pem | Decode X.509 certificates to a PDF showing subject, issuer, validity, SAN, and fingerprints. | |
| Cover areas with white or black rectangles to hide content. | ||
| Auto-detect and redact credit cards, emails, phone numbers, SSNs. |
PDF Utilities
Additional tools for working with PDF files.
| Source | Target | Description |
|---|---|---|
| Rotate PDF pages permanently | ||
| Remove unwanted pages from PDF | ||
| Add page numbers to PDF | ||
| Add watermark to PDF documents | ||
| Fix damaged PDF files | ||
| Flatten PDF forms and layers | ||
| Convert PDF to black and white | ||
| Sort and reorder PDF pages | ||
| Add digital signature to PDF | ||
| json | Check if your PDF meets PDF/A archival standards. | |
| Put 2, 4, 8 or 16 pages on a single sheet. | ||
| Rearrange pages for booklet saddle-stitch printing. | ||
| Add sequential legal Bates stamps to PDF pages. | ||
| Add custom headers and footers with dates, page numbers, and text. | ||
| Search and replace text across all PDF pages. | ||
| Straighten skewed scanned pages automatically. | ||
| Batch remove highlights, comments, and annotations by type. | ||
| Insert clickable hyperlinks, email links, and page links. | ||
| Add, modify, or replace PDF bookmarks and table of contents. | ||
| Auto-rename files based on text extracted from pages. | ||
| Reorder pages, insert blanks, mix pages from multiple files. |
Image Conversions
Convert between image formats with high quality.
| Source | Target | Description |
|---|---|---|
| jpg | png | Convert JPG to PNG |
| jpg | webp | Convert JPG to WebP |
| jpg | tiff | Convert JPG to TIFF |
| jpg | bmp | Convert JPG to BMP |
| jpg | heic | Convert JPG to HEIC |
| jpg | gif | Convert JPG to GIF |
| jpg | avif | Convert JPG to AVIF |
| png | jpg | Convert PNG to JPG |
| png | webp | Convert PNG to WebP |
| png | tiff | Convert PNG to TIFF |
| png | bmp | Convert PNG to BMP |
| png | heic | Convert PNG to HEIC |
| png | gif | Convert PNG to GIF |
| png | avif | Convert PNG to AVIF |
| webp | jpg | Convert WebP to JPG |
| webp | png | Convert WebP to PNG |
| webp | tiff | Convert WebP to TIFF |
| webp | bmp | Convert WebP to BMP |
| webp | heic | Convert WebP to HEIC |
| webp | gif | Convert WebP to GIF |
| webp | avif | Convert WebP to AVIF |
| tiff | jpg | Convert TIFF to JPG |
| tiff | png | Convert TIFF to PNG |
| tiff | webp | Convert TIFF to WebP |
| tiff | bmp | Convert TIFF to BMP |
| tiff | heic | Convert TIFF to HEIC |
| tiff | gif | Convert TIFF to GIF |
| tiff | avif | Convert TIFF to AVIF |
| bmp | jpg | Convert BMP to JPG |
| bmp | png | Convert BMP to PNG |
| bmp | webp | Convert BMP to WebP |
| bmp | tiff | Convert BMP to TIFF |
| bmp | heic | Convert BMP to HEIC |
| bmp | gif | Convert BMP to GIF |
| bmp | avif | Convert BMP to AVIF |
| heic | jpg | Convert HEIC to JPG |
| heic | png | Convert HEIC to PNG |
| heic | webp | Convert HEIC to WebP |
| heic | tiff | Convert HEIC to TIFF |
| heic | bmp | Convert HEIC to BMP |
| heic | gif | Convert HEIC to GIF |
| heic | avif | Convert HEIC to AVIF |
| gif | jpg | Convert GIF to JPG |
| gif | png | Convert GIF to PNG |
| gif | webp | Convert GIF to WebP |
| gif | tiff | Convert GIF to TIFF |
| gif | bmp | Convert GIF to BMP |
| gif | heic | Convert GIF to HEIC |
| gif | avif | Convert GIF to AVIF |
| avif | jpg | Convert AVIF to JPG |
| avif | png | Convert AVIF to PNG |
| avif | webp | Convert AVIF to WebP |
| avif | tiff | Convert AVIF to TIFF |
| avif | bmp | Convert AVIF to BMP |
| avif | heic | Convert AVIF to HEIC |
| avif | gif | Convert AVIF to GIF |
| heif | jpg | Convert HEIF to JPG |
AI-Powered Tools
Prepare documents for AI and LLM processing.
| Source | Target | Description |
|---|---|---|
| mp3 | Convert PDF documents to natural-sounding audio using AI text-to-speech. | |
| json | AI-powered: Automatically generate study flashcards from any PDF. | |
| svg | AI-powered: Instantly create visual mind maps from PDF documents. | |
| pptx | AI-powered: Convert PDF documents or reports into PowerPoint presentations automatically. | |
| json | AI-powered: Extract structured data from PDF invoices, forms, and documents as clean JSON. | |
| image | docx | Convert scanned images and photos to editable Word documents using advanced OCR. |
| zip | AI converts your Obsidian vault ZIP to a structured PDF — wikilinks resolved. | |
| json | AI converts Roam Research JSON exports to structured PDF documents. | |
| zip | AI cleans up Notion Markdown exports and converts to professional PDF. | |
| json | AI converts GitHub Issues JSON export to a professional PDF sprint report. | |
| Make scanned PDFs searchable with AI-powered text recognition. |
Developer Tools
Convert code, notebooks, diagrams, and technical formats to PDF and other outputs.
| Source | Target | Description |
|---|---|---|
| ipynb | Convert Jupyter Notebook (.ipynb) to PDF with all outputs and plots preserved. | |
| mmd | Render Mermaid diagram syntax (.mmd) to crisp vector PDF. | |
| md | docx | Convert Markdown (.md) files to editable Microsoft Word documents. |
| openapi | Generate professional PDF documentation from OpenAPI 3.x or Swagger 2.0 specs. | |
| code | Convert source code files to syntax-highlighted PDF for code reviews and submissions. | |
| rst | Convert reStructuredText (.rst) documentation to PDF online. | |
| adoc | Convert AsciiDoc (.adoc) documents to professionally formatted PDF. | |
| tex | Compile LaTeX (.tex) files to PDF online — no local TeX installation required. | |
| env | json | Convert .env environment files to JSON for documentation and config management. |
| env | Generate a PDF reference sheet from your .env file with secret redaction. | |
| ini | json | Convert INI configuration files to JSON with section and key-value mapping. |
| ini | Convert INI config files to a structured PDF configuration reference document. | |
| toml | json | Convert TOML configuration files to JSON — perfect for Cargo.toml, pyproject.toml, and more. |
| toml | Convert TOML configuration files to readable PDF documentation sheets. | |
| txt | Decode JWT tokens to a PDF audit report showing claims, expiry, and algorithm. | |
| pub | Generate a PDF info sheet for SSH public keys showing fingerprint, algorithm, and key size. | |
| zip | Generate a PDF manifest of all files inside a ZIP archive with sizes and paths. | |
| json | Generate a PDF dependency report from package.json with all dependencies and scripts. | |
| toml | Generate a PDF dependency and feature report from Rust Cargo.toml files. | |
| txt | Generate a PDF dependency report from Python requirements.txt files. | |
| log | csv | Convert web server access logs to CSV for analysis in Excel or data tools. |
| log | Generate a PDF analytics report from Nginx or Apache access logs with traffic statistics. | |
| log | Convert structured JSON log files (Winston, Bunyan, Pino) to a readable PDF report. | |
| bib | Convert BibTeX reference files to a formatted PDF bibliography in APA, MLA, or Chicago style. | |
| json | json | Convert OpenAPI JSON specs to Postman Collection v2.1 for instant API testing. |
| tex | docx | Convert LaTeX .tex documents to editable Word DOCX — essential for journal submissions. |
| rmd | Convert R Markdown .Rmd files to PDF for sharing data science reports. | |
| scss | AI converts CSS/SCSS variables to a professional PDF design token reference sheet. | |
| json | AI generates a PDF storyboard from Lottie animation JSON with frame descriptions. | |
| yaml | AI converts Kubernetes manifests to clear PDF documentation for non-technical stakeholders. | |
| tf | AI converts Terraform HCL configurations to infrastructure documentation PDF. | |
| tf | json | AI converts Terraform HCL configuration files to JSON format. |
| ino | AI generates documentation PDF from Arduino sketches with pin mapping and function index. | |
| log | AI analyzes systemd journal logs and generates a structured operations report PDF. | |
| opml | Convert OPML podcast subscription files to a PDF feed catalog for documentation. |
Office Format Conversions
Convert between Microsoft Office, Apple iWork, and open formats without losing fidelity.
| Source | Target | Description |
|---|---|---|
| pptx | docx | Convert PowerPoint presentations to editable Word documents. |
| pptx | html | Convert PowerPoint presentations to HTML for sharing online without PowerPoint. |
| docx | epub | Convert Word documents to EPUB ebooks for Kindle, Apple Books, and Kobo. |
| docx | md | Convert Word documents to clean Markdown text for GitHub, docs sites, and static generators. |
| key | Convert Apple Keynote (.key) presentations to PDF without a Mac or iCloud. | |
| key | pptx | Convert Apple Keynote (.key) files to PowerPoint PPTX for cross-platform sharing. |
| pages | docx | Convert Apple Pages (.pages) documents to Microsoft Word DOCX. |
| pages | Convert Apple Pages (.pages) documents to PDF without iCloud or a Mac. | |
| numbers | xlsx | Convert Apple Numbers (.numbers) spreadsheets to Microsoft Excel XLSX. |
| pptx | png | Export each PowerPoint slide as an individual PNG image. |
| epub | docx | Convert EPUB ebooks to editable Word documents for authors and editors. |
| cbz | Convert CBZ comic book archives to PDF for reading on any device. | |
| odt | docx | Convert LibreOffice Writer .odt documents to editable Microsoft Word DOCX files. |
Data Format Conversions
Convert JSON, CSV, YAML, XML, and SQL between data formats and document outputs.
| Source | Target | Description |
|---|---|---|
| json | xlsx | Convert JSON data to formatted Excel spreadsheets with automatic column detection. |
| json | csv | Convert JSON arrays to CSV files for spreadsheets, databases, and data pipelines. |
| json | Render JSON data as a formatted, readable PDF report. | |
| csv | json | Convert CSV spreadsheet data to JSON format for APIs and JavaScript applications. |
| yaml | json | Convert YAML configuration files to JSON format for APIs and Node.js apps. |
| yaml | Convert YAML configuration files to readable PDF documents. | |
| xml | json | Convert XML data files to JSON format for REST APIs and JavaScript applications. |
| xml | xlsx | Convert XML data files to Excel spreadsheets with automatic column mapping. |
| sql | Convert SQL schema files to formatted PDF documentation for your database. | |
| xlsx | json | Convert Excel spreadsheets to JSON arrays — all sheets preserved. |
| xlsx | csv | Convert Excel XLSX files to CSV format — first sheet exported. |
| csv | xlsx | Convert CSV files to Excel XLSX spreadsheets instantly. |
| xls | xlsx | Upgrade legacy Excel 97-2003 .xls files to modern XLSX format. |
| wk1 | xlsx | Convert legacy Lotus 1-2-3 .wk1 and .wk3 spreadsheets to modern Excel XLSX. |
| ods | xlsx | Convert OpenDocument spreadsheets .ods to Microsoft Excel XLSX format. |
Geospatial & Location
Convert GeoJSON, GPX, KML, and geospatial formats to CSV, PDF, and other outputs.
| Source | Target | Description |
|---|---|---|
| geojson | csv | Extract GeoJSON features, coordinates, and properties to a CSV spreadsheet. |
| geojson | Convert GeoJSON to a PDF feature report with coordinates and properties. | |
| gpx | csv | Extract GPX track points and waypoints to a CSV spreadsheet for analysis. |
| gpx | Convert GPX GPS tracks to a PDF route summary card with distance and elevation stats. | |
| kml | Convert Google Earth KML/KMZ files to a PDF placemark report. |
Optimize & Production
Prepare PDFs for accessibility, print production, and specialized output.
| Source | Target | Description |
|---|---|---|
| Make PDFs accessible and compliant with PDF/UA standards. | ||
| Convert vector PDF to image-based PDF for consistent rendering. | ||
| Add bleed, trim marks, and crop marks for professional printing. |
Enterprise & Compliance
Convert business protocols, healthcare records, financial data, and legacy formats.
| Source | Target | Description |
|---|---|---|
| ofx | Convert OFX and QFX bank statement files to readable PDF documents. | |
| sta | Convert MT940 SWIFT bank statement files to human-readable PDF documents. | |
| hl7 | Convert HL7 v2 ADT, ORU, and ORM messages to readable PDF patient documents. | |
| json | Convert FHIR R4 JSON resources to clean, patient-friendly PDF records. | |
| xbrl | Convert XBRL financial filings to readable PDF financial statements. | |
| edi | Convert EDI X12 and EDIFACT business documents to readable PDF — invoices, POs, and ASNs. | |
| log | AI generates an IoT operations report PDF from MQTT broker logs. |
Next steps
- Try a conversion with the Quick Start guide
- Review rate limits for your plan
- Set up webhooks for async job notifications