Skip to content

File Preview

Click any object in the browser to open an inline preview. Sairo detects the file type by extension and renders an appropriate viewer. A download button is always available in the preview modal header.

CategoryExtensionsRendering
Imagesjpg, jpeg, png, gif, svg, webp, ico, bmpNative <img> element
DocumentspdfRendered in browser via embedded viewer
Codejs, jsx, ts, tsx, py, sql, sh, bashMonospace source view with line numbers
Texttxt, md, xml, yaml, yml, html, cssMonospace source view with line numbers
Configconf, cfg, ini, tomlMonospace source view with line numbers
DatacsvParsed table with column headers
DatajsonPretty-printed with line numbers
Logslog, out, errHead/tail toggle for large files
Analyticsparquet, orc, avroSchema + metadata inspection panel
OtherAll other typesDownload prompt

Standard web image formats are displayed directly. The preview scales the image to fit the modal while preserving the aspect ratio.

PDF files are rendered inline using the browser’s native PDF viewer. Scrolling, zooming, and page navigation work as expected.

Source files are displayed in a monospace font with line numbers. The viewer scrolls independently within the preview modal.

CSV files are parsed and rendered as a table with column headers. The table scrolls independently within the preview modal.

JSON files are pretty-printed with line numbers for easy reading.

Log and text files support a head/tail toggle. By default the preview shows the end of the file (tail). Click “Head” to jump to the beginning — useful for checking file headers or older entries.

For columnar and row-oriented data formats, Sairo displays the file’s schema (column names and types) and metadata (row count, row groups, compression codec, creation library). This lets you inspect data files without downloading them or running a query engine.

Files that do not match any recognized extension show a “Preview not available” message with a download button.