Djot to PJPEG Converter
FileFlip converts Djot to PJPEG entirely inside your browser, using Pandoc, MuPDF and ImageMagick compiled to WebAssembly. The file is never uploaded to a server: it is read off your disk, converted on your own machine, and saved back by the browser. That means no file-size limit, no queue and no account.
How do I convert a Djot file to PJPEG?#
- Drop your Djot file onto the converter at the top of this page, or click it to pick one from your computer. You can add as many as you like.
- Leave the target set to PJPEG and the conversion starts on its own. FileFlip downloads 79.9 MB of WebAssembly the first time and nothing after that, then runs Pandoc, MuPDF and ImageMagick on your own machine.
- Save the PJPEG file. Your browser writes it straight to your downloads folder, because there was never a server holding it.
Does converting Djot to PJPEG lose quality?#
Yes, in the sense that text stops being text. Each Djot page is rendered to pixels and handed to PJPEG, so the result looks right and can no longer be selected, searched, or reflowed.
Is it safe to convert Djot files online?#
Yes, because nothing is uploaded. FileFlip converts Djot files inside the browser tab you already have open, using WebAssembly builds of the same engines a desktop converter would install. Your file is read from your own disk into the page's memory, and no request carrying it is ever made.
You do not have to take that on trust. Open your browser's network panel, run a conversion, and you will see the engine come down and your file go nowhere. There is no upload, no server-side copy, no retention window, and no account tied to what you converted.
How FileFlip works lists every engine, its version and its download size, and shows how to check for yourself that nothing leaves your machine.
What Djot to PJPEG actually does to the file#
Converting Djot to PJPEG runs on Pandoc, MuPDF and ImageMagick, downloads 79.9 MB of WebAssembly the first time and nothing after that, renders each page to pixels, keeps page layout, and drops selectable text and transparency.
| Engine | Pandoc, MuPDF and ImageMagick |
|---|---|
| Conversion path | 3 steps: Djot → HTML → PNG → PJPEG |
| Downloaded to your browser | 79.9 MB, once, then cached by your browser |
| Quality | Text becomes pixels |
| You get back | One image per page, zipped when the source has several |
| Where it runs | In a background worker, so the page stays responsive |
What survives the conversion
| What is in the file | This conversion | Why |
|---|---|---|
| Selectable text | Dropped | The target format has nowhere to put it. |
| Page layout | Kept | Carried through into the converted file. |
| Transparency | Dropped | The target format has nowhere to put it. |
Worth knowing before you start:
- pages render at twice their point size in opaque RGB, roughly 144 DPI, with no transparency
- reflowable input is laid out on a fixed 595x842pt page at 11pt before anything else happens
- the file passes through HTML on the way, so anything HTML cannot express does not survive
What is a Djot file?#
A DJ file holds a Djot document, a lightweight markup that reads like Markdown but is built on an unambiguous grammar, so it parses the same way in every implementation.
Write in Djot when Markdown's readability is wanted without its parsing ambiguities, and broad tool support isn't a requirement yet.
Convert Djot to another format when sharing with tools or people that only handle Markdown, HTML, or another mainstream format.
What is a PJPEG file?#
PJPEG is progressive JPEG, a JPEG encoding choice rather than a different file format, where the image is built up through several increasingly detailed scans across the whole picture instead of filling in top to bottom in one pass.
Choose progressive encoding for images shown over a slow or uncertain connection, where a quick blurry preview beats a slow top-down reveal.
Convert to baseline JPEG when a downstream tool or embedded device only supports the simpler sequential scan order.
Djot to PJPEG questions people ask#
What is a .dj file?
A .dj file is a Djot document, a lightweight markup language that looks like Markdown but parses under a stricter, unambiguous grammar. It was designed in 2022 by John MacFarlane, who also created Pandoc and co-authored the CommonMark specification.
Who created Djot and why?
Djot was created by John MacFarlane, drawing on his essay 'Beyond Markdown' about the parsing problems built into Markdown and CommonMark. Djot keeps Markdown's familiar look while fixing the ambiguities that make CommonMark hard to parse efficiently, and adds features like footnotes and definition lists.
Is Djot the same as Markdown?
No, Djot only looks similar to Markdown. It derives most of its syntax from CommonMark but changes several rules to remove parsing ambiguities, so a document written for one won't reliably render correctly in the other.
What is PJPEG?
PJPEG is progressive JPEG, a JPEG file encoded in a handful of increasingly detailed scans instead of one pass from top to bottom. It's still a JPEG file, just encoded differently, and opens anywhere JPEG does.