Docmark guide
Why convert a document to Markdown, and where the limits are. The token estimate formula is included.
Why convert to Markdown
When you upload a Word or PDF file into a chat as is, formatting data comes along, tokens grow, and tables or heading structure can get scrambled. Markdown is plain text where a heading is #, a list item is - and a table uses |, so a model reads the structure easily.
Note apps such as Obsidian and Notion take Markdown as is. Convert once and paste it in many places.
Which files can it read
Documents like docx, doc, odt and rtf, slides like pptx, ppt and odp, sheets like xlsx, ods and csv, and epub books. The engine is the open source anydoc from firecrawl, and it runs inside this browser as WebAssembly.
Hangul (hwp, hwpx) files cannot be read directly. Save them from Hangul as docx or PDF first.
How the token count is estimated
Hangul, Han and kana characters count as 1 token each. Other characters count as 1 token per 4, and whitespace is not counted. It is close for English and can run higher or lower for Korean depending on the model.
It is an estimate. Each model has its own tokenizer, so it will not match real billing or limits. Leave some room for long documents.
What often happens with PDFs
A PDF stores text as lines with coordinates, so paragraphs and headings have to be guessed again. A short line in large or bold type can be read as a heading, so a short last line may turn into one.
A scanned PDF is an image, not text, so it cannot be read. This tool does not do OCR and tells you when a file is like that.
When it may not fit
Equations, images, charts and heavily merged tables may not carry over, or may change shape. Check the parts that matter before you paste.
Files are not sent anywhere or stored. Close the tab and the result is gone.
What to check after converting
Check the heading levels first. A title is marked with #, a subheading with ## and so on, by the number of marks in front.
Look at the tables to see that cells are split by vertical bars. A table with merged cells can come out looking different.
Also see that list marks and numbers carry on. One quick scan before you paste is the fastest check.
Two copy buttons
Copy puts the converted Markdown on the clipboard as it is. Use it for a notes app.
Copy for LLM puts it in a form that is easier to paste into a chat. Write your question after you paste.
The .md download saves the result as a file. The result is gone when you close the window, so download what you need.
When a file will not convert
For a password-protected file, remove the password first and add it again.
Files over 50 MB are not read. Save the document in parts and try again.
A scanned PDF or a file with no text only gets a message, because it is a picture and cannot become text. For a Hangul (hwp) file, save it as docx or PDF first.