Convert a PDF or Word file to Markdown
Drop a file to get clean Markdown, its token count and what each model charges to read it. Your file is never uploaded.
The conversion runs in your browser, and your file is never uploaded.

# Travel and expense policy This policy explains what Northwind Supplies pays for when you travel for work, and how to get your money back. It applies to every employee and contractor from 1 January 2027. ## 1. Before you travel Book the trip yourself in the travel portal. Trips above EUR 800 need a yes from your team lead before you book. - Take the train when the journey is under four hours.- Fly economy on flights shorter than six hours.- Book hotels at least seven days ahead when you can.- Share a taxi when several colleagues go the same way. ## 2. Spending limits The limits below are per person. Anything above a limit needs approval before you spend it. | Expense | Limit | Receipt || --- | --- | --- || Hotel, per night | EUR 160 | Always || Meals, per day | EUR 45 | Above EUR 15 || Train, second class | Actual cost | Always || Taxi, per trip | EUR 60 | Always || Own car, per km | EUR 0.30 | Route log | ## 3. Getting your money back 1. Keep every receipt and take a photo of it on the same day.2. File the claim in the finance portal within 30 days of the trip.3. Your team lead approves or returns the claim within five working days.4. Finance pays approved claims with the next salary run. ### What we do not pay for Minibar charges, fines, lost personal items and upgrades you chose yourself stay with you. If you are not sure whether a cost is covered, ask finance@northwind.example before you spend. ## 4. Questions The finance team answers policy questions within two working days. Exceptions are decided by the Head of Finance and recorded with the claim.
375 tokens as Markdown
Counted with OpenAI’s tokenizer. One run means a model reads the text once, at list price.
What does this file cost on each model? Show pricesHide prices
| Model | Tokens | Cost of 1,000 runs, cheapest first |
|---|---|---|
| GPT-6 Luna | ≈ 375 estimate | $0.038 |
| Claude Haiku 5.5 | ≈ 488–563 estimate | $0.049–$0.056 |
| Mistral Large 4 | ≈ 375 not measured | $0.263 |
| Gemini 3.8 Flash | ≈ 375–413 estimate | $0.281–$0.310 |
| GPT-6.2 Sol | ≈ 375 estimate | $0.750 |
| Gemini 4 Carbon | ≈ 375–413 estimate | $0.750–$0.826 |
| Claude Sonnet 5.5 | ≈ 488–563 estimate | $0.976–$1.13 |
| Claude Opus 5.5 | ≈ 488–563 estimate | $1.95–$2.25 |
| GPT-6.2 Astra | ≈ 375 estimate | $3.00 |
| Claude Fable 5.2 | ≈ 488–563 estimate | $3.90–$4.50 |
travel-expense-policy.pdf is now 39 lines of Markdown with 6 headings, 1 table and 2 lists. Having a model read it 1,000 times costs from $0.038 on GPT-6 Luna to $4.50 on Claude Fable 5.2.
The page loads only its own code from secondstack.ai and our analytics (Google Tag Manager, Google Analytics and Cloudflare Web Analytics), which never receive your file.
Make a whole folder AI‑ready and keep it in sync
Knowledge Collections in SecondStack take a folder of PDFs and Word files, convert it and keep it current as the files change. Your agents answer from that folder and show which document each answer came from. It runs with your own model providers.
What the converter does
Markdown keeps the structure
Copying text out of a PDF loses the headings, flattens the tables and drags every page header along. Markdown keeps headings, lists and tables as they are, so a model can tell a rule from a caption. It is also plain text, so you can read what you are about to send.
What converts and what does not
- PDF with selectable text: headings are recognized by size and weight, lists by their markers or indent, and tables by their columns. Pages set in two or three columns are read column by column. Rotated stamps and repeating page headers and footers are left out.
- Word (.docx): headings, lists, tables, bold, italic and links come from the document’s own styles.
- Not yet: images, scanned PDFs (they need OCR) and tables whose cells span several rows.
How the token count works
The tool counts with the encoding OpenAI publishes, o200k_base, so the number is exact for the OpenAI models that use it. It does not run other vendors’ tokenizers, so their rows show a range labelled estimate. OpenAI’s tiktoken library does not yet name an encoding for the GPT-6 models, so their rows show this count labelled estimate too. Mistral is shown at the OpenAI count, because we found no published measurement.
How many tokens is this in Claude?
It is more than the OpenAI count. No Claude tokenizer is public, so the tool uses published measurements: about 1.3 to 1.5 times the OpenAI count for documents and prose, and up to about 1.7 times for code. For Gemini the range is about 1.0 to 1.1 times for English text, measured on Gemini 3.x Flash. Sources, checked on 11 November 2026:
- Anthropic, “Token counting”: Claude 4.7 and later models use a newer tokenizer. The same input text produces approximately 30 percent more tokens than on earlier models.
- Playcode, “The real price of frontier models”: Measured with each vendor's counting endpoint on 16 fixtures, with the OpenAI count as 1.00x. Claude (new tokenizer): English prose 1.40x, HTML 1.36x, code 1.50 to 1.73x. Gemini 3.x Flash: English prose 1.01x, HTML 1.08x, code 1.16 to 1.23x.
- Simon Willison, “Claude Token Counter, now with model comparisons”: The Opus 4.7 system prompt counts 1.46x its Opus 4.6 count.
- Google, “Understand and count tokens”: For Gemini models, a token is equivalent to about 4 characters.
For an exact count, send the text to Anthropic’s token counting endpoint, /v1/messages/count_tokens, with your own API key and the model you plan to use, because the count differs between Claude models. This tool never sends your text anywhere, so it cannot make that call for you.
What one run costs
Each row multiplies the token count by the model’s list price for input, from our model price table. One run is a model reading the file once, and the table shows 1,000 runs. The model’s answer is billed separately, and caching or batch discounts would lower the cost.
Where your file goes
It stays in your browser. The conversion and the count run there, and the link to this page never contains your text.
More free tools
- Is this safe to paste into AI?Mask names, bank details and keys first.
- What will AI cost your team?A seat for everyone, or pay per use?
- AI usage policy generatorA one‑page policy in seven questions.
- Compare two PDFs or Word filesEvery change between two versions.
- Remove background noise from audioClean a recording in your browser.
- Transcribe audio to textText and subtitles from a recording.