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.
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 → Any Format
Many PDFs → One
How It Works
AConvert a PDF
BMerge PDFs
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
# 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
Convert a PDF to plain text, then send it to AI Chat for summarization, Q&A, translation, or key-data extraction.
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.
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.