online-convert.com
App · File Conversion · 7 actions
Convert documents, images, audio, video, e-books and archives between hundreds of formats, compress and resize files, read the text in scans, capture web pages, merge PDFs and trim videos with online-convert.com.
Actions
| Action | What it does |
|---|---|
| Capture a web page | Save a web page as a PDF or as a full-page screenshot, as it looks on a desktop, tablet or phone. |
| Compress a file | Make a PDF, image, video or audio file smaller, in the same format, so it fits an email or an upload limit. |
| Convert a file | Convert a document, image, audio file, video, e-book or archive to another format: Word to PDF, PNG to JPG, a video to MP4, or a video's sound to MP3. |
| Extract text from a scan | Read the text in a scanned PDF or a photo of a page (OCR) and hand it to later steps, saved as text, an editable Word document or a searchable PDF. |
| Merge PDFs | Join PDFs into one PDF, in the order they are listed. |
| Resize an image | Scale an image to a new width, height or both, such as a 1200 x 630 social preview or a 400-pixel thumbnail. |
| Trim a video | Keep just part of a video, from one moment to another, in the format it came in. |
Capture a web page
Save a web page as a PDF or as a full-page screenshot, as it looks on a desktop, tablet or phone. The capture is saved for later steps.
Inputs
- Web page
urltextRequired - The address of the page, such as https://example.com. It must open without signing in.
- Capture as
capture_astext - A PDF document, or an image of the whole page.One of:
pdf(PDF document),png(PNG image),jpg(JPG image). Default:pdf. - Screen
screentext - The size of screen to show the page on.One of:
desktop,tablet,phone. Default:desktop. - Save as
filenametext - Optional. The name to save the result under, such as 'Q3 report'. Leave blank to name it after the original.
Outputs
content_typetext- The file's media type.
document_reftext- Reference to the saved file, for a later step to attach.
documentslist- The captured page, saved. Usually one file; a conversion that makes several (a PDF's pages as images) lists each.
file_countnumber- How many files were saved.
filenametext- Name of the saved file.
page_urltext- The address that was captured.
size_bytesnumber- Size of the file in bytes.
statustext- Status of the action execution ("success" on success).
urltext- Download link for the saved file.
warningslist- Anything online-convert.com noted about the result, such as a file it could not compress any further.
Example output
{
"content_type": "application/pdf",
"document_ref": "doc_9f8e7d6c5b4a43b2c1d0e9f8a7b6c5d4",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_9f8e7d6c5b4a43b2c1d0e9f8a7b6c5d4",
"filename": "example.com.pdf",
"size_bytes": 58918,
"url": "/actions/core/serve-document/doc_9f8e7d6c5b4a43b2c1d0e9f8a7b6c5d4"
}
],
"file_count": 1,
"filename": "example.com.pdf",
"page_url": "https://example.com",
"size_bytes": 58918,
"status": "success",
"url": "/actions/core/serve-document/doc_9f8e7d6c5b4a43b2c1d0e9f8a7b6c5d4",
"warnings": []
}Compress a file
Make a PDF, image, video or audio file smaller, in the same format, so it fits an email or an upload limit. The smaller file is saved for later steps.
Inputs
- File
filetextRequired - The PDF, image, video or audio file to compress: upload one, pick a file from an earlier step, or paste a public link to one.
- How much
compressiontext - Stronger makes a smaller file at more cost to quality.One of:
low(Light · smallest change to quality),medium,high(Strong),best(Strongest · smallest file). Default:high. - Aim for (MB)
target_size_mbnumber - Optional. A size the file should fit in, such as 2 for an email attachment. online-convert.com gets as close as it can without ruining the file. Replaces 'How much'.From 0.01 to 1024.0.
- Save as
filenametext - Optional. The name to save the result under, such as 'Q3 report'. Leave blank to name it after the original.
Outputs
content_typetext- The file's media type.
document_reftext- Reference to the saved file, for a later step to attach.
documentslist- The compressed file, saved. Usually one file; a conversion that makes several (a PDF's pages as images) lists each.
file_countnumber- How many files were saved.
filenametext- Name of the saved file.
size_bytesnumber- Size of the file in bytes.
statustext- Status of the action execution ("success" on success).
urltext- Download link for the saved file.
warningslist- Anything online-convert.com noted about the result, such as a file it could not compress any further.
Example output
{
"content_type": "application/pdf",
"document_ref": "doc_8a1b2c3d4e5f40718293a4b5c6d7e8f9",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_8a1b2c3d4e5f40718293a4b5c6d7e8f9",
"filename": "brochure.pdf",
"size_bytes": 412377,
"url": "/actions/core/serve-document/doc_8a1b2c3d4e5f40718293a4b5c6d7e8f9"
}
],
"file_count": 1,
"filename": "brochure.pdf",
"size_bytes": 412377,
"status": "success",
"url": "/actions/core/serve-document/doc_8a1b2c3d4e5f40718293a4b5c6d7e8f9",
"warnings": []
}Convert a file
Convert a document, image, audio file, video, e-book or archive to another format: Word to PDF, PNG to JPG, a video to MP4, or a video's sound to MP3. The converted file is saved so later steps can send, upload or store it.
Inputs
- File
filetextRequired - The file to convert: upload one, pick a file from an earlier step, or paste a public link to one.
- Convert to
output_formattextRequired - The format to convert the file into.
- Save as
filenametext - Optional. The name to save the result under, such as 'Q3 report'. Leave blank to name it after the original.
Outputs
content_typetext- The file's media type.
converted_totext- The format the file was converted into, e.g. pdf.
document_reftext- Reference to the saved file, for a later step to attach.
documentslist- The converted file, saved. Usually one file; a conversion that makes several (a PDF's pages as images) lists each.
file_countnumber- How many files were saved.
filenametext- Name of the saved file.
size_bytesnumber- Size of the file in bytes.
statustext- Status of the action execution ("success" on success).
urltext- Download link for the saved file.
warningslist- Anything online-convert.com noted about the result, such as a file it could not compress any further.
Example output
{
"content_type": "application/pdf",
"converted_to": "pdf",
"document_ref": "doc_3f2a9c1e5b7d4e8fa0c6b1d2e3f4a5b6",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_3f2a9c1e5b7d4e8fa0c6b1d2e3f4a5b6",
"filename": "report.pdf",
"size_bytes": 84213,
"url": "/actions/core/serve-document/doc_3f2a9c1e5b7d4e8fa0c6b1d2e3f4a5b6"
}
],
"file_count": 1,
"filename": "report.pdf",
"size_bytes": 84213,
"status": "success",
"url": "/actions/core/serve-document/doc_3f2a9c1e5b7d4e8fa0c6b1d2e3f4a5b6",
"warnings": []
}Extract text from a scan
Read the text in a scanned PDF or a photo of a page (OCR) and hand it to later steps, saved as text, an editable Word document or a searchable PDF.
Inputs
- File
filetextRequired - The scan: a PDF or an image (JPG, PNG, TIFF...). Upload one, pick a file from an earlier step, or paste a public link to one.
- Languages
languageslist - The languages the text is written in. Picking the right ones makes the reading far more accurate.One or more of:
eng(English),spa(Spanish),fra(French),deu(German),ita(Italian),por(Portuguese),nld(Dutch),pol(Polish),ces(Czech),slk(Slovak), and 44 more. Default:["eng"]. - Convert to
output_formattext - Plain text is easiest for later steps to read; a Word document keeps the layout for editing; a searchable PDF looks like the scan but its text can be found and copied.One of:
txt(Plain text (TXT)),docx(Word document (DOCX)),pdf(Searchable PDF). Default:txt. - Save as
filenametext - Optional. The name to save the result under, such as 'Q3 report'. Leave blank to name it after the original.
Outputs
content_typetext- The file's media type.
converted_totext- The format the file was converted into, e.g. pdf.
document_reftext- Reference to the saved file, for a later step to attach.
documentslist- The recognised text as a file, saved. Usually one file; a conversion that makes several (a PDF's pages as images) lists each.
file_countnumber- How many files were saved.
filenametext- Name of the saved file.
size_bytesnumber- Size of the file in bytes.
statustext- Status of the action execution ("success" on success).
texttext- The text that was read, when converting to plain text (empty for Word and PDF).
urltext- Download link for the saved file.
warningslist- Anything online-convert.com noted about the result, such as a file it could not compress any further.
Example output
{
"content_type": "text/plain",
"converted_to": "txt",
"document_ref": "doc_6e5d4c3b2a1f40e9d8c7b6a5f4e3d2c1",
"documents": [
{
"content_type": "text/plain",
"document_ref": "doc_6e5d4c3b2a1f40e9d8c7b6a5f4e3d2c1",
"filename": "scan.txt",
"size_bytes": 1204,
"url": "/actions/core/serve-document/doc_6e5d4c3b2a1f40e9d8c7b6a5f4e3d2c1"
}
],
"file_count": 1,
"filename": "scan.txt",
"size_bytes": 1204,
"status": "success",
"text": "INVOICE 1042\nDate: 3 October 2026\nTotal due: $1,250.00",
"url": "/actions/core/serve-document/doc_6e5d4c3b2a1f40e9d8c7b6a5f4e3d2c1",
"warnings": []
}Merge PDFs
Join PDFs into one PDF, in the order they are listed. Images and Word or Excel files can go in too, such as photos of receipts, and each becomes pages of the PDF.
Inputs
- Files
fileslistRequired - The files to merge, in order (at least two). Upload them, pick files from earlier steps, or paste public links.
- Save as
filenametext - Optional. The name to save the result under, such as 'Q3 report'. Leave blank to name it after the original.
Outputs
content_typetext- The file's media type.
document_reftext- Reference to the saved file, for a later step to attach.
documentslist- The merged PDF, saved. Usually one file; a conversion that makes several (a PDF's pages as images) lists each.
file_countnumber- How many files were saved.
filenametext- Name of the saved file.
files_mergednumber- How many files went into the PDF.
size_bytesnumber- Size of the file in bytes.
statustext- Status of the action execution ("success" on success).
urltext- Download link for the saved file.
warningslist- Anything online-convert.com noted about the result, such as a file it could not compress any further.
Example output
{
"content_type": "application/pdf",
"document_ref": "doc_2b3c4d5e6f7a48b9c0d1e2f3a4b5c6d7",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_2b3c4d5e6f7a48b9c0d1e2f3a4b5c6d7",
"filename": "invoice-merged.pdf",
"size_bytes": 301744,
"url": "/actions/core/serve-document/doc_2b3c4d5e6f7a48b9c0d1e2f3a4b5c6d7"
}
],
"file_count": 1,
"filename": "invoice-merged.pdf",
"files_merged": 3,
"size_bytes": 301744,
"status": "success",
"url": "/actions/core/serve-document/doc_2b3c4d5e6f7a48b9c0d1e2f3a4b5c6d7",
"warnings": []
}Resize an image
Scale an image to a new width, height or both, such as a 1200 x 630 social preview or a 400-pixel thumbnail. The resized image is saved in its own format.
Inputs
- File
filetextRequired - The image to resize: upload one, pick a file from an earlier step, or paste a public link to one.
- Width
widthnumber - In pixels. Leave blank to follow the height and keep the image's proportions.From 1 to 20000.
- Height
heightnumber - In pixels. Leave blank to follow the width and keep the image's proportions.From 1 to 20000.
- Fit
fittext - When both width and height are set and the image has other proportions: what to do with the difference.One of:
keep_aspect_ratio_crop(Fill the size, trimming the edges),keep_aspect_ratio_fill_white(Fit inside, with white bars),keep_aspect_ratio_fill_transparent(Fit inside, with transparent bars),keep_aspect_ratio_fill_blurred(Fit inside, with blurred bars),keep_aspect_ratio_fill_black(Fit inside, with black bars),stretch(Stretch to exactly that size). Default:keep_aspect_ratio_crop. - Save as
filenametext - Optional. The name to save the result under, such as 'Q3 report'. Leave blank to name it after the original.
Outputs
content_typetext- The file's media type.
document_reftext- Reference to the saved file, for a later step to attach.
documentslist- The resized image, saved. Usually one file; a conversion that makes several (a PDF's pages as images) lists each.
file_countnumber- How many files were saved.
filenametext- Name of the saved file.
size_bytesnumber- Size of the file in bytes.
statustext- Status of the action execution ("success" on success).
urltext- Download link for the saved file.
warningslist- Anything online-convert.com noted about the result, such as a file it could not compress any further.
Example output
{
"content_type": "image/jpeg",
"document_ref": "doc_1c2d3e4f5a6b47c8d9e0f1a2b3c4d5e6",
"documents": [
{
"content_type": "image/jpeg",
"document_ref": "doc_1c2d3e4f5a6b47c8d9e0f1a2b3c4d5e6",
"filename": "photo.jpg",
"size_bytes": 96512,
"url": "/actions/core/serve-document/doc_1c2d3e4f5a6b47c8d9e0f1a2b3c4d5e6"
}
],
"file_count": 1,
"filename": "photo.jpg",
"size_bytes": 96512,
"status": "success",
"url": "/actions/core/serve-document/doc_1c2d3e4f5a6b47c8d9e0f1a2b3c4d5e6",
"warnings": []
}Trim a video
Keep just part of a video, from one moment to another, in the format it came in. The trimmed video is saved for later steps.
Inputs
- File
filetextRequired - The video to trim: upload one, pick a file from an earlier step, or paste a public link to one.
- From
starttextRequired - Where the part to keep starts, as minutes:seconds or hours:minutes:seconds, such as 0:05 or 1:02:30.
- To
endtextRequired - Where the part to keep ends, such as 1:30. Must be within the video.
- Save as
filenametext - Optional. The name to save the result under, such as 'Q3 report'. Leave blank to name it after the original.
Outputs
content_typetext- The file's media type.
document_reftext- Reference to the saved file, for a later step to attach.
documentslist- The trimmed video, saved. Usually one file; a conversion that makes several (a PDF's pages as images) lists each.
duration_secondsnumber- How long the trimmed video is, in seconds.
file_countnumber- How many files were saved.
filenametext- Name of the saved file.
size_bytesnumber- Size of the file in bytes.
statustext- Status of the action execution ("success" on success).
urltext- Download link for the saved file.
warningslist- Anything online-convert.com noted about the result, such as a file it could not compress any further.
Example output
{
"content_type": "video/mp4",
"document_ref": "doc_5a6b7c8d9e0f41a2b3c4d5e6f7a8b9c0",
"documents": [
{
"content_type": "video/mp4",
"document_ref": "doc_5a6b7c8d9e0f41a2b3c4d5e6f7a8b9c0",
"filename": "interview-trimmed.mp4",
"size_bytes": 4812330,
"url": "/actions/core/serve-document/doc_5a6b7c8d9e0f41a2b3c4d5e6f7a8b9c0"
}
],
"duration_seconds": 25.0,
"file_count": 1,
"filename": "interview-trimmed.mp4",
"size_bytes": 4812330,
"status": "success",
"url": "/actions/core/serve-document/doc_5a6b7c8d9e0f41a2b3c4d5e6f7a8b9c0",
"warnings": []
}