Skip to main content
PDF Tools

How to Convert and Merge PDFs with Bitcoin Lightning

Two PDF tools, one Lightning payment. Convert a PDF to DOCX, Markdown, HTML, or plain text — or merge multiple PDFs into one. 100 sats per operation, no account required, files never stored.

100 sats/operationNo account required6 output formatsL402 / MCP / OpenClaw

For Humans

Use cases for individuals, businesses, and researchers

Edit a PDF you can't modify

A contract or report arrives as a PDF but you need to make changes. Convert it to DOCX, edit it in Word or Google Docs, and send it back. No Adobe subscription, no printing and scanning.

Compile documents privately

Merge contracts, invoices, or legal filings into a single consolidated PDF for submission or archiving. No account means nothing ties you to the documents you process — important for sensitive business or legal paperwork.

Feed PDFs into AI workflows

Convert a PDF report or paper to plain text or Markdown, then send it straight into AI Chat to summarize, translate, extract key data, or ask questions. Cheaper and more flexible than PDF-to-AI tools that bundle everything into a subscription.

Research compilation

Merge multiple academic papers or reports into one file for easier reading and annotation. Or convert scanned papers to text and run OCR for full-text search across your research library.

PDF Convert

PDF → Any Format

100 sats
per conversion
DOCX
HTML
MD
ODT
RTF
TXT
200MB max file size
PDF Merge

Many PDFs → One

100 sats
per merge operation
Upload multiple PDFs
Set merge order
Download single file
200MB total size

How It Works

AConvert a PDF

1
Open the PDF ConverterUpload your PDF (up to 200MB). No login required.
2
Choose output formatDOCX, HTML, MD, ODT, RTF, or TXT.
3
Pay 100 satsScan the Lightning QR with any wallet.
4
DownloadYour converted file is ready in seconds.

BMerge PDFs

1
Open the PDF Merge toolUpload all PDFs you want to combine. No login required.
2
Set the orderPDFs merge in upload order — arrange before uploading.
3
Pay 100 satsScan the Lightning QR with any wallet.
4
DownloadYour merged PDF is ready immediately.

For Agents

Use cases for AI agents, automation pipelines, and developers

No API key needed. Both PDF tools use L402 — pay-per-operation via Lightning. Agents send a file, receive a 402 with an invoice, pay it, and get the result back. Process one file or a thousand with no quota management.

Document preprocessing

Convert incoming PDFs to plain text or Markdown before passing to AI analysis. Build pipelines that automatically convert, extract, and route document content without manual handling.

RAG corpus preparation

Convert PDF libraries to Markdown for vector store ingestion. Feed the output directly into a RAG pipeline for semantic search over document collections — paying per file rather than a monthly ingestion fee.

Automated report compilation

Generate multiple report PDFs in a pipeline, then automatically merge them into a single consolidated file for delivery. No manual step needed between generation and final output.

Contract and legal processing

Batch convert scanned legal documents to text, then chain with AI Chat for clause extraction, date identification, and structured summaries. Pay only for documents that actually need processing.

L402 Authentication Flow

1
Send the request without authPOST the PDF to the convert or merge endpoint. The server responds with HTTP 402 and a Lightning invoice.
2
Pay the invoiceThe agent pays the 100-sat Lightning invoice. Confirms in milliseconds.
3
Resend with payment proofResend the request with the payment preimage in the Authorization header. The server returns the converted or merged file.
terminal
# Convert PDF to another format via file-conversion
# Step 1: Send request (returns 402 + invoice)
curl -X POST https://sats4ai.com/api/l402/convert-file \
  -H "Content-Type: application/json" \
  -d '{"file":"<base64-encoded-pdf>","file_name":"report.pdf","extensionFrom":"pdf","extensionTo":"docx"}'

# Step 2: Pay the Lightning invoice (100 sats)

# Step 3: Resend with payment proof
curl -X POST https://sats4ai.com/api/l402/convert-file \
  -H "Content-Type: application/json" \
  -H "Authorization: L402 <token>:<preimage>" \
  -d '{"file":"<base64-encoded-pdf>","file_name":"report.pdf","extensionFrom":"pdf","extensionTo":"docx"}'

MCP & OpenClaw

Chain with Other Services

PDF Convert

Convert a PDF to plain text, then send it to AI Chat for summarization, Q&A, translation, or key-data extraction.

PDF Convert

For image-based PDFs, convert the format first, then run OCR to extract text the standard converter can't reach.

Convert Word, Excel, or image files to PDF first, then merge all resulting PDFs into a single consolidated document.

PDF Convert

Extract text from a PDF, then convert it to audio. Listen to any document hands-free.

Convert or Merge PDFs — No Signup Required

100 sats per operation. Files processed instantly and never stored. All you need is a Lightning wallet.