File to Markdown avatar

File to Markdown

Pricing

Pay per usage

Go to Apify Store
File to Markdown

File to Markdown

Transform files into clean, readable Markdown instantly. Convert PDFs, documents, images, and more to structured Markdown format. Perfect for automating documentation workflows, content migration, and building knowledge bases. Ideal for developers, writers, and content teams.

Pricing

Pay per usage

Rating

5.0

(1)

Developer

Shahid Irfan

Shahid Irfan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

File to Markdown Converter

Convert documents, spreadsheets, images, and text files into clean, AI-ready Markdown. Provide a public file URL or upload a file directly in the Actor input.

Features

  • URL conversion — Convert any publicly accessible file URL
  • File upload conversion — Upload a local file via the input UI
  • Metadata included — Get title, tokens, and processing timing (when available)
  • Single-result output — Writes exactly one result item per run

Use Cases

Knowledge Base Preparation

Turn PDFs and docs into Markdown for internal documentation and search.

AI / RAG Pipelines

Convert files into Markdown to feed LLM workflows, embeddings, and agent tools.

Reporting and Analysis

Extract readable text from spreadsheets and reports for downstream processing.

Input Parameters

Provide either url or file. If both are provided, the Actor uses file.

ParameterTypeRequiredDefaultDescription
urlStringNoExample URLPublic file URL to convert
fileStringNoUpload a file using the input UI
outputFormatStringNojsonjson (recommended) or markdown (URL only)
timeoutSecsIntegerNo30Timeout for conversion and download steps

Output Data

The Actor stores the result in:

  • Default dataset (one item)
  • Key-value store record OUTPUT

Each result contains:

FieldTypeDescription
successBooleanWhether conversion succeeded
sourceString"url" or "upload"
titleStringBest-effort title (when available)
contentStringConverted Markdown content
urlStringOriginal URL (URL conversions)
filenameStringFilename (uploads)
file_typeStringFile extension/type (uploads)
tokensNumberToken count (when available)
duration_msNumberProcessing time (URL conversions, when available)
processing_time_msNumberProcessing time (uploads, when available)

Usage Examples

{
"url": "https://www.rfc-editor.org/rfc/rfc1149.txt",
"outputFormat": "json",
"timeoutSecs": 30
}

Convert by URL (Markdown output)

{
"url": "https://www.rfc-editor.org/rfc/rfc1149.txt",
"outputFormat": "markdown"
}

Convert by Upload

{
"file": "(uploaded via UI)",
"outputFormat": "json",
"timeoutSecs": 30
}

Sample Output

{
"success": true,
"source": "url",
"url": "https://www.rfc-editor.org/rfc/rfc1149.txt",
"title": "rfc1149.txt",
"content": "# ...",
"method": "...",
"duration_ms": 1200,
"tokens": 850
}

Tips for Best Results

Use Public URLs

If the file URL requires authentication, upload it via the file input instead.

Start With JSON Output

Use outputFormat: "json" to keep metadata such as token counts when available.

Mind Rate Limits

If the upstream service throttles requests, reduce run frequency or space out runs.

Frequently Asked Questions

Which file types are supported?

Common document, spreadsheet, image, and text formats are supported by the upstream converter.

Where is the result stored?

In the default dataset (one item) and also as the OUTPUT key-value store record.

Can I upload private files?

Yes — use the file input to upload files without needing a public URL.

Integrations

  • Apify API — Fetch results from the dataset or OUTPUT record
  • Make / Zapier — Trigger conversions and forward Markdown downstream
  • Google Sheets / BigQuery — Store and analyze converted outputs

You are responsible for ensuring you have the right to process the files and URLs you provide.