Skip to content

SUN to Djot Converter

FileFlip converts SUN to Djot entirely inside your browser, using ImageMagick, MuPDF and Pandoc 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.

Convert SUN to

How do I convert a SUN file to Djot?#

  1. Drop your SUN 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.
  2. Leave the target set to Djot and the conversion starts on its own. FileFlip downloads 79.9 MB of WebAssembly the first time and nothing after that, then runs ImageMagick, MuPDF and Pandoc on your own machine.
  3. Save the Djot file. Your browser writes it straight to your downloads folder, because there was never a server holding it.

Does converting SUN to Djot lose quality?#

No. The SUN picture is placed into the Djot document at its full resolution, so every pixel reaches it intact. What you give up is that it becomes a picture inside a document rather than text.

Is it safe to convert SUN files online?#

Yes, because nothing is uploaded. FileFlip converts SUN 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 SUN to Djot actually does to the file#

Converting SUN to Djot runs on ImageMagick, MuPDF and Pandoc, downloads 79.9 MB of WebAssembly the first time and nothing after that, places the picture into the document at full resolution.

EngineImageMagick, MuPDF and Pandoc
Conversion path3 steps: SUN → PNG → HTML → Djot
Downloaded to your browser79.9 MB, once, then cached by your browser
QualityPixels preserved
You get backOne file
Where it runsIn a background worker, so the page stays responsive

Worth knowing before you start:

  • the picture is placed in the document as a picture; no text is recognised out of it
  • the file passes through HTML on the way, so anything HTML cannot express does not survive

What is a SUN file?#

A SUN file is a Sun Raster bitmap, the same raw framebuffer image format Sun Microsystems shipped on SunOS workstations, saved under the alternate .sun extension some raster-image tools use in place of the identical .ras.

Recognise a .sun file as a Sun Raster image if it turns up alongside .ras files from the same legacy Solaris export or archive.

Convert SUN to PNG or TIFF for any modern use, since the .sun extension gets even less software recognition than .ras.

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.

SUN to Djot questions people ask#

What is a SUN file?

A SUN file is a Sun Raster bitmap, the simple framebuffer image format Sun Microsystems used on SunOS and Solaris workstations, identified by a fixed magic number at the start of the file rather than by its extension.

Is SUN the same format as RAS?

Yes, a SUN file and a RAS file are the identical Sun Raster format. The two extensions exist because different tools over the years registered the format under different names, not because the files differ in any way.

Can I just rename a .sun file to .ras?

Renaming a .sun file to .ras works, because the two extensions point at the same byte-for-byte format and most decoders identify a Sun Raster file by its magic number rather than its extension. Some tools that only recognise .ras will open the renamed file without issue.

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.