File to Markdown for Openclaw

A universal file-to-Markdown conversion layer powered by Cloudflare Workers AI to prepare any document for LLM ingestion.

alaminrifat
v1.0.0
Feb 24, 2026
0
1.8k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install file-to-markdown

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install file-to-markdown using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is File to Markdown?

The File to Markdown skill is a high-performance utility designed to transform diverse file formats into clean, structured Markdown text. By leveraging the markdown.new API and Cloudflare Workers AI, it provides a seamless bridge between unstructured data and AI-ready content. Whether you are dealing with complex PDFs, multi-sheet spreadsheets, or visual images, this skill ensures that Openclaw Skills users can extract valuable information without manual formatting.

This tool is essential for developers and researchers who need to feed high-quality data into Large Language Models (LLMs). With support for over 20 formats and zero authentication requirements for standard usage, it streamlines the data preparation phase of any AI workflow, making it one of the most versatile Openclaw Skills available for document processing and RAG pipelines.

File to Markdown Use Cases

  • Extracting text from PDFs and Word documents for RAG ingestion pipelines.
  • Converting spreadsheets like Excel and Numbers into structured tables for LLM analysis.
  • Using AI object detection and summarization to describe image content in text format.
  • Normalizing web pages and HTML content into clean Markdown for knowledge bases.
  • Automating document summarization and dataset extraction workflows within AI agent environments.

How File to Markdown Works

  1. The user provides a public file URL or uploads a local file to the conversion endpoint.
  2. The skill identifies the file type from a list of over 20 supported document, image, and spreadsheet formats.
  3. Cloudflare Workers AI toMarkdown() logic processes the file, extracting text while preserving structural elements like headers and lists.
  4. For visual assets, the system utilizes AI-driven object detection to generate a descriptive summary of the image content.
  5. The final output is returned as either plain Markdown text or a structured JSON object containing metadata, token counts, and processing duration.

File to Markdown Setup

Integrating this skill into your environment is straightforward as it requires no initial authentication for up to 500 requests per day. You can interact with the API via simple curl commands.

To convert a remote file:

curl -s "https://markdown.new/https://example.com/report.pdf"

To upload and convert a local file:

curl -s https://markdown.new/convert -F "[email protected]"

File to Markdown Data Schema & Taxonomy

The skill organizes data into structured JSON objects when requested via POST or the format parameter, allowing Openclaw Skills to manage LLM budgets effectively.

Field Type Description
success Boolean Indicates if the conversion was successful.
content String The core Markdown output ready for AI ingestion.
title String The extracted title or filename of the document.
tokens Integer Estimated token count for the generated Markdown.
method String The specific conversion pipeline or AI model used.
duration_ms Integer Total time taken to process the file in milliseconds.

File to Markdown Advanced Features

  • AI-Powered Image Descriptions: Automatically generates textual summaries for JPG, PNG, WEBP, and SVG files using object detection.
  • Multi-Sheet Spreadsheet Support: Converts complex Excel, Numbers, and ODS files into structured Markdown tables.
  • Structured Metadata: Provides token counts and processing time, which is critical for monitoring high-volume Openclaw Skills pipelines.
  • Webpage Conversion: specialized logic for scraping and converting live HTML URLs into clean, readable text.
  • Local File Uploads: Supports converting private or non-publicly accessible files via a dedicated multipart/form-data endpoint.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*