Skip to main content
File Conversion

How to Convert Files with Bitcoin Lightning

Upload any file, pick a target format, pay 100 sats, download the result. 200+ format combinations — images, documents, video, audio, archives. No account, no ads, files never stored.

100 sats/conversionNo account required200+ formatsL402 / MCP / OpenClaw

For Humans

Use cases for individuals, creators, and professionals

Fix photo format mismatches

iPhone shoots HEIC but the website only takes JPG. A form wants PNG but you have a TIFF. Convert in seconds without installing an app or feeding your photo to an ad-supported website with unknown privacy practices.

Document compatibility

Need to send a DOCX as PDF for a client, or open an ODT in Microsoft Office? Convert once, pay 100 sats, move on. No monthly subscription for a task you'll do twice a month. Then merge the resulting PDFs if needed.

Video and audio format fixes

Convert an MKV to MP4 for a device that won't play it, or extract the audio track from a video as MP3. No need to install FFmpeg, HandBrake, or any other tool — just upload, select the format, and pay.

Prepare files for AI services

Many AI services only accept specific formats. Convert an image to the required format before running vision analysis or 3D generation. Convert audio to the right format before transcription.

Supported Formats

200+ combinations across 5 categories

100 sats
~$0.05 per conversion · 1GB max
Images
JPG, PNG, WEBP, GIF, TIFF, HEIC, SVG, BMP, ICO
Documents
PDF, DOCX, TXT, RTF, ODT, HTML, MD, EPUB
Video
MP4, MOV, AVI, MKV, WEBM, FLV, WMV
Audio
MP3, WAV, OGG, FLAC, AAC, WMA, M4A
Archives
ZIP, RAR, 7Z, TAR, GZ

How It Works

1

Upload your file

Go to sats4ai.com/file-conversion. Drag and drop or click to upload. Files up to 1GB are supported.

2

Select the target format

The converter detects compatible output formats automatically based on your input. Choose from the dropdown.

3

Pay 100 sats

Click Convert. A Lightning QR code appears for 100 sats. Scan with any Lightning wallet — Phoenix, Breez, Wallet of Satoshi, or a WebLN browser wallet.

4

Download

Your converted file is ready in seconds. It is never stored — download it and it's gone from the server.

For Agents

Use cases for AI agents, automation pipelines, and developers

No API key needed. The file conversion endpoint uses L402 — pay-per-file via Lightning. Agents send a file and target format, receive a 402 with an invoice, pay it, and get the converted file back. Works with any language or HTTP client.

Format normalization pipelines

Standardize incoming user uploads before processing. Convert any image to PNG, any document to PDF, any audio to MP3 — ensuring downstream services always receive a consistent format without conditional logic in your code.

Pre-processing for AI services

Many AI endpoints accept only specific formats. Agents can automatically convert a file to the required format before calling vision analysis, transcription, or 3D generation — handling the full pipeline without manual intervention.

Batch conversion workflows

Process hundreds of files programmatically — convert a library of TIFF scans to JPEG, transcode a folder of videos to MP4, or normalize an audio archive to MP3. Pay 100 sats per file, scale to any volume.

Archive extraction

Agents receiving ZIP, RAR, or 7Z archives can extract contents programmatically without installing archive tools on the host. Useful in sandboxed environments or serverless functions where installing binaries isn't possible.

L402 Authentication Flow

1
Send the request without authPOST the file and target format to the endpoint. The server responds with HTTP 402 and a Lightning invoice.
2
Pay the invoiceThe agent pays the 50-sat Lightning invoice using a connected wallet. Confirms in milliseconds.
3
Resend with payment proofResend the request with the payment preimage in the Authorization header. The server returns the converted file.
terminal
# 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-file>","file_name":"photo.heic","extensionFrom":"heic","extensionTo":"jpg"}'

# 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-file>","file_name":"photo.heic","extensionFrom":"heic","extensionTo":"jpg"}'

MCP & OpenClaw

Chain with Other Services

File Conversion

Convert a scanned image (HEIC, TIFF) to a standard format, then extract the text with OCR. Go from a photo of a receipt to structured text in two steps.

File Conversion

Convert an image to JPEG or PNG before running vision analysis — ensuring compatibility with the AI model's accepted input formats.

File Conversion

Convert audio from any format (WMA, OGG, FLAC) to MP3 or WAV before passing it to the transcription service.

File Conversion

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

Convert Files — No Signup Required

100 sats per conversion. 200+ format combinations. Files never stored. All you need is a Lightning wallet.