API Documentation Integrate file conversions into your applications using our REST API.
Table of Contents Getting Started The Conversion Tools REST API provides HTTP-based access to our file conversion services using token authentication. All requests and responses use JSON format.
Quick start: Sign up for a free account, grab your API token from your
Profile , and start converting files in minutes.
Libraries We maintain official REST API client libraries for the most popular languages:
TypeScript client with full type safety, error handling, and retry logic.
bash npm install conversiontools
Python client with type hints, async support, and error handling.
bash pip install conversiontools
PHP client with retry logic, PSR-7 streaming, and error handling.
bash composer require conversiontools/conversiontools-php
New in v2.0.0+: TypeScript/type hints, custom error classes, automatic retry logic, sandbox mode support, and improved developer experience.
OpenAPI 3.0 Specification: Download openapi.yaml -- Use with code generators, API testing tools, or explore with Swagger Editor
Pricing Our API offers flexible, pay-as-you-grow pricing with unlimited sandbox testing.
Free
100 API calls/month -- Perfect for testing
50 MB / 1,000
$6/month -- Ideal for automation
100 MB / 2,000
$18/month -- Production apps
500 MB / 5,000
$45/month -- High volume
All plans include: Unlimited sandbox testing OpenAPI specification Node.js, Python, and PHP libraries Webhook callbacks 100 AI Conversion Credits/month (separate from regular API calls). Buy more anytime View detailed pricing →
Authentication When your account is created, we generate an API Token for accessing the Conversion Tools REST API. You can find it on your Profile page.
Pass the token in the Authorization header using the Bearer scheme:
http Authorization: Bearer <API Token>
Sample request verifying API access:
bash curl -sSX GET https://api.conversiontools.io/v1/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API Token>"
API URL The Conversion Tools REST API is available at:
https://api.conversiontools.io/v1/
API Requests Each API request must contain the following components:
The HTTP method: GET or POST Authorization header with your API TokenContent-Type: application/json headerA JSON request body (see API Reference below) Example: creating a new conversion task:
bash curl -sSX POST https://api.conversiontools.io/v1/tasks \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API Token>" \
-d '{
"type": "convert.website_to_jpg",
"options": {
"url": "http://google.com",
"images": "yes"
}
}'
API Response Every API response contains an error field plus optional data:
json {
"error" : "<error text>" ,
<data>
}
Success response:
json {
"error" : null ,
"task_id" : "4147c475ffe94ec8a11aff9a6a8f437a"
}
Error response:
json {
"error" : "Bad request"
}
API Reference The file conversion process consists of 4 steps:
Upload file to the server (optional when a URL is provided) Run conversion task Get conversion task status Download the result file 1 Upload file to the serverIf you are providing the file by URL, skip to Step 2.
Upload a file using an HTTP POST request with Content-Type: multipart/form-data.
POST https://api.conversiontools.io/v1/files
Headers: http Authorization: Bearer <API Token>
Content-Type: multipart/form-data
Parameters: Parameter Required Description file Required The file to upload
Response: json {
"error" : null ,
"file_id" : "be87de1a680c4451a49a72df3fecd3fd"
}
Example: bash curl -sSX POST https://api.conversiontools.io/v1/files \
-H "Authorization: Bearer <API Token>" \
-F "file=@/home/user/Desktop/test.xml"
2 Run conversion taskPOST https://api.conversiontools.io/v1/tasks
Parameters: Parameter Required Description type Required Conversion type, e.g. convert.website_to_pdf options Required Set of options specific to each conversion type
Options parameters: Parameter Required Description file_id For uploaded files The file_id returned by POST /files url For URL-based URL of the file to convert
Response: json {
"error" : null ,
"task_id" : "4147c475ffe94ec8a11aff9a6a8f437a"
}
3 Get conversion task statusPoll this endpoint until the task finishes (check the status field).
Important: Send this request no more than once every 5-10 seconds.
GET https://api.conversiontools.io/v1/tasks/<task_id>
Example: bash curl -sSX GET https://api.conversiontools.io/v1/tasks/d9b5369bfc6541d88581d4ff80954917 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API Token>"
Status values: PENDINGTask is queued
RUNNINGTask is processing
SUCCESSCompleted successfully
ERRORFinished with error
When SUCCESS:
json {
"error" : null ,
"status" : "SUCCESS" ,
"file_id" : "ce87de1a680c4451a49a72df3fecd3fe"
}
When ERROR:
json {
"error" : "Wrong file format" ,
"status" : "ERROR" ,
"file_id" : null
}
4 Download result fileGET https://api.conversiontools.io/v1/files/<file_id>
The response includes a Content-Disposition: attachment; header, which triggers the file download in browsers. When using the SDK, the response body contains the raw file bytes.
Available Conversion Types Below are all conversion types that accept configurable options. Click a row to expand and see its parameters. For the full specification, refer to the OpenAPI specification .
convert.ai_pdf_to_jsonAI: PDF to JSON
convert.ai_pdf_to_markdownAI: PDF to Markdown
convert.ai_png_to_jsonAI: PNG to JSON
convert.ai_jpg_to_jsonAI: JPG to JSON
convert.ai_pdf_to_csvAI: PDF to CSV
convert.ai_pdf_to_excelAI: PDF to Excel
convert.ai_to_svgAI to SVG
convert.ai_translate_srtAI: Translate SRT
convert.ai_text_to_mp3AI: Text to Speech
convert.ai_docx_to_mp3AI: DOCX to Speech
convert.ai_pdf_to_mp3AI: PDF to Speech
convert.ai_md_to_mp3AI: Markdown to Speech
convert.ai_mp3_to_textAI: MP3 to Text
convert.ai_wav_to_textAI: WAV to Text
convert.ai_flac_to_textAI: FLAC to Text
convert.ocr_png_to_textOCR: PNG to Text
convert.ocr_jpg_to_textOCR: JPG to Text
convert.ocr_png_to_pdfOCR: PNG to PDF
convert.ocr_jpg_to_pdfOCR: JPG to PDF
convert.ocr_pdf_to_textOCR: PDF (Image) to Text
convert.ocr_pdf_to_pdfOCR: PDF Image to PDF Text
convert.mov_to_mp4MOV to MP4
convert.mkv_to_mp4MKV to MP4
convert.avi_to_mp4AVI to MP4
convert.mp4_to_mp3MP4 to MP3
convert.wav_to_mp3WAV to MP3
convert.flac_to_mp3FLAC to MP3
convert.mp3_to_wavMP3 to WAV
convert.flac_to_wavFLAC to WAV
convert.wav_to_flacWAV to FLAC
convert.word_to_pdfWord to PDF
convert.powerpoint_to_pdfPowerPoint to PDF
convert.oxps_to_pdfOXPS to PDF
convert.jpg_to_pdfJPG to PDF
convert.png_to_pdfPNG to PDF
convert.excel_to_pdfExcel to PDF
convert.ods_to_pdfODS to PDF
convert.pdf_to_csvPDF to CSV
convert.pdf_to_excelPDF to Excel
convert.pdf_to_wordPDF to Word
convert.pdf_to_jpgPDF to JPG
convert.pdf_to_pngPDF to PNG
convert.pdf_to_tiffPDF to TIFF
convert.pdf_to_svgPDF to SVG
convert.pdf_to_htmlPDF to HTML
convert.pdf_to_textPDF to Text
convert.word_to_htmlWord to HTML
convert.powerpoint_to_htmlPowerPoint to HTML
convert.word_to_textWord to Text
convert.powerpoint_to_textPowerPoint to Text
convert.excel_to_xpsExcel to XPS
convert.excel_to_htmlExcel to HTML
convert.excel_to_csvExcel to CSV
convert.excel_to_odsExcel to ODS
convert.ods_to_csvODS to CSV
convert.ods_to_excelODS to Excel
convert.png_to_svgPNG to SVG
convert.png_to_avifPNG to AVIF
convert.jpg_to_avifJPG to AVIF
convert.webp_to_avifWebP to AVIF
convert.avif_to_pngAVIF to PNG
convert.avif_to_jpgAVIF to JPEG
convert.avif_to_webpAVIF to WebP
convert.png_to_webpPNG to WebP
convert.jpg_to_webpJPG to WebP
convert.tiff_to_webpTIFF to WebP
convert.gif_to_webpGIF to WebP
convert.webp_to_pngWebP to PNG
convert.webp_to_jpgWebP to JPEG
convert.webp_to_tiffWebP to TIFF
convert.webp_to_bmpWebP to BMP
convert.webp_to_yuvWebP to YUV
convert.webp_to_pamWebP to PAM
convert.webp_to_pgmWebP to PGM
convert.webp_to_ppmWebP to PPM
convert.png_to_jpgPNG to JPG
convert.png_to_pgmPNG to PGM
convert.png_to_ppmPNG to PPM
convert.jpg_to_pngJPG to PNG
convert.jpg_to_pgmJPEG to PGM
convert.jpg_to_ppmJPEG to PPM
convert.heic_to_pngHEIC to PNG
convert.heic_to_jpgHEIC to JPG
convert.heic_to_webpHEIC to WebP
convert.heic_to_avifHEIC to AVIF
convert.heic_to_tiffHEIC to TIFF
convert.heic_to_bmpHEIC to BMP
convert.heic_to_jxlHEIC to JXL
convert.jpg_to_heicJPG to HEIC
convert.png_to_heicPNG to HEIC
convert.webp_to_heicWebP to HEIC
convert.avif_to_heicAVIF to HEIC
convert.tiff_to_heicTIFF to HEIC
convert.bmp_to_heicBMP to HEIC
convert.jpg_to_jxlJPG to JXL
convert.png_to_jxlPNG to JXL
convert.webp_to_jxlWebP to JXL
convert.avif_to_jxlAVIF to JXL
convert.tiff_to_jxlTIFF to JXL
convert.bmp_to_jxlBMP to JXL
convert.gif_to_jxlGIF to JXL
convert.jxl_to_jpgJXL to JPG
convert.jxl_to_pngJXL to PNG
convert.jxl_to_webpJXL to WebP
convert.jxl_to_avifJXL to AVIF
convert.jxl_to_tiffJXL to TIFF
convert.jxl_to_bmpJXL to BMP
convert.jxl_to_heicJXL to HEIC
convert.jxl_to_gifJXL to GIF
convert.svg_to_pngSVG to PNG
convert.svg_to_jpgSVG to JPG
convert.remove_exifRemove EXIF Data
convert.epub_to_mobiePUB to MOBI
convert.epub_to_azwePUB to AZW
convert.mobi_to_epubMOBI to ePUB
convert.mobi_to_azwMOBI to AZW
convert.azw_to_epubAZW to ePUB
convert.azw_to_mobiAZW to MOBI
convert.epub_to_pdfePUB to PDF
convert.mobi_to_pdfMOBI to PDF
convert.azw_to_pdfAZW to PDF
convert.azw3_to_pdfAZW3 to PDF
convert.fb2_to_pdfFB2 to PDF
convert.fbz_to_pdfFBZ to PDF
convert.pdf_to_epubPDF to ePUB
convert.pdf_to_mobiPDF to MOBI
convert.pdf_to_azwPDF to AZW
convert.pdf_to_azw3PDF to AZW3
convert.pdf_to_fb2PDF to FB2
convert.pdf_to_fbzPDF to FBZ
convert.xml_to_jsonXML to JSON
convert.format_jsonJSON Formatter
convert.validate_jsonJSON Validator
convert.json_to_xmlJSON to XML
convert.json_to_csvJSON to CSV
convert.json_to_excelJSON to Excel
convert.excel_to_jsonExcel to JSON
convert.csv_to_jsonCSV to JSON
convert.json_to_yamlJSON to YAML
convert.json_objects_to_csvJSON objects to CSV
convert.json_objects_to_excelJSON objects to Excel
convert.bson_to_csvBSON to CSV
convert.bson_to_excelBSON to Excel
convert.yaml_to_jsonYAML to JSON
convert.csv_to_xmlCSV to XML
convert.excel_to_xmlExcel to XML
convert.xml_to_csvXML to CSV
convert.xml_to_excelXML to Excel
convert.fix_xml_escapingFix XML Escaping
convert.excel_xml_to_excel_xlsxExcel XML to XLSX
convert.validate_xml_xsdXML/XSD Validator
convert.csv_to_excelCSV to Excel
convert.csv_to_parquetCSV to Parquet
convert.parquet_to_csvParquet to CSV
convert.json_to_parquetJSON to Parquet
convert.parquet_to_jsonParquet to JSON
convert.jsonl_to_parquetJSONL to Parquet
convert.parquet_to_jsonlParquet to JSONL
convert.parquet_to_excelParquet to Excel
convert.xml_to_parquetXML to Parquet
convert.excel_to_parquetExcel to Parquet
convert.csv_to_jsonlCSV to JSONL
convert.jsonl_to_csvJSONL to CSV
convert.jsonl_to_excelJSONL to Excel
convert.excel_to_jsonlExcel to JSONL
convert.srt_to_csvSRT to CSV
convert.srt_to_excelSRT to Excel
convert.srt_to_xlsxSRT to XLSX
convert.srt_to_xlsSRT to XLS
convert.srt_to_textSRT to Text
convert.srt_to_vttSRT to VTT
convert.vtt_to_textVTT to Text
convert.vtt_to_srtVTT to SRT
convert.csv_to_srtCSV to SRT
convert.excel_to_srtExcel to SRT
convert.xlsx_to_srtXLSX to SRT
convert.xls_to_srtXLS to SRT
convert.ass_to_srtASS to SRT
convert.ass_to_vttASS to VTT
convert.ass_to_textASS to Text
convert.ass_to_excelASS to Excel
convert.srt_to_assSRT to ASS
convert.vtt_to_assVTT to ASS
convert.excel_to_assExcel to ASS
convert.markdown_to_pdfMarkdown to PDF
convert.markdown_to_htmlMarkdown to HTML
convert.markdown_to_epubMarkdown to ePUB
convert.markdown_to_docxMarkdown to Word
convert.markdown_to_latexMarkdown to LaTeX
convert.markdown_to_textMarkdown to Text
convert.html_to_markdownHTML to Markdown
convert.word_to_markdownWord to Markdown
convert.website_to_pdfHTML to PDF
convert.website_to_jpgWebsite to JPG
convert.html_to_jpgHTML to JPG
convert.website_to_pngWebsite to PNG
convert.html_to_pngHTML to PNG
convert.html_to_wordHTML to Word
convert.html_table_to_csvHTML Table to CSV
Showing 199 of 199 conversion types with configurable options.
See all converters available on the website .
Need Help? If you have any questions about the Conversion Tools REST API, feel free to contact us .