Smallest files: DrawIO + SVG for diagrams

I created this graphic:

Using DrawIO and Excalidraw, saving both as SVG and as PNG images, saving both of those with the diagram info embedded and without it.

ApplicationFormatDiagram EmbedSize
DrawIOSVGNo9KB
DrawIOSVGYes11KB
DrawIOPNGNo18KB
DrawIOPNGYes25KB
ExcalidrawSVGNo34KB
ExcalidrawPNGNo259KB

Obviously this depends on the image, but it seems like for this type of graphic (one I expect I’d use a lot) it goes:

  • DrawIO better than Excalidraw
  • SVG better than PNG

Source

  • Experimentation