TNEF Extractor winmail dat Attachments Body API
Free tier included · EmailMicrosoft Outlook sometimes sends mail as a TNEF file — winmail.dat — instead of normal MIME. Mailboxes that don't understand TNEF show a single opaque attachment, and the real attachments, the text body and the HTML body stay locked inside. TNEF Extractor takes that file and returns what's in it: every attachment as base64 with its filename and size, the plain-text body, the HTML body and the decoded TNEF attributes (strings, dates, recipients and MAPI properties).
It's built for people who receive these files rather than send them. Support teams get the PDF invoice a customer actually attached instead of a bounced winmail.dat. Migration scripts unpack years of mailboxes before moving to a new provider. Helpdesk and ticketing pipelines turn a forwarded message into usable attachments automatically. Forensics and e-discovery jobs extract the body and attributes without opening Outlook at all.
The parsing is offline and stateless: the file is decoded in memory, the response is returned, nothing is written to disk and no request content is logged. The parser is checked against the reference `tnef` C tool on TNEF fixtures from three independent projects, and one known upstream bug — truncated binary MAPI values, which corrupted OLE and PDF attachments — is patched here.
Honest limits: files are capped at 20 MB, and output is only as good as the TNEF file itself — a malformed or truncated upload returns a structured error rather than a partial guess. Attachments are returned base64-encoded, so large ones inflate the JSON response by about a third.
Endpoints
| Method | Path | What it does |
|---|---|---|
POST | /parse | Upload a winmail.dat (TNEF) file as multipart form field file; returns attachments as base64 plus plain body, HTML body and decoded TNEF attributes. Max file size 20 MB. |
Quick start
curl -X POST "https://tnef.p.rapidapi.com/parse" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: tnef.p.rapidapi.com" \
-F "file=@winmail.dat"
FAQ
How big a file can I upload?
20 MB per request. The file goes in the multipart form field `file`. Larger messages should be trimmed first, and remember the base64 attachments in the response add roughly a third to their raw size.
Do you store or log my files?
No. Parsing happens in memory, the response is returned, and nothing is written to disk or kept across requests. The service is offline and stateless — there is no database.
What if the winmail.dat is corrupted?
You get a structured error (`{"error": {"code", "message"}}`) instead of a partial or guessed result. A damaged TNEF stream cannot be reliably reconstructed, so the API reports the failure rather than returning half the attachments.
Can I send several files in one request?
No. One TNEF file per `POST /parse` call. For batches, issue one request per file — each call is fast and independent, so parallel requests work fine within your plan's hourly cap.
Try TNEF Extractor winmail dat Attachments Body free
Free tier on every plan. Get an API key and start calling in under a minute.
Open on RapidAPI