15 September 2026
Converting StarOffice & StarWriter (SDW) to Markdown: OLE Compound Binary Forensics
Converting StarOffice & StarWriter (SDW) to Markdown: OLE Compound Binary Forensics
Before LibreOffice and Apache OpenOffice became household names, Star Division (and later Sun Microsystems) produced StarOffice, one of the earliest cross-platform office suites for Windows, Linux, and Solaris. Its word processor, StarWriter, saved documents with the .sdw extension.
Decades later, millions of government, legal, and academic documents from the late 1990s remain locked in .sdw files. Modern office suites have dropped support for older StarWriter filters. In this article, we examine how .sdw compound files work and how convrtr extracts clean GitHub Flavored Markdown (GFM) directly in your browser.
1. The OLE 2.0 Compound File Binary (CFB) Architecture
StarWriter 5.x documents are built on Microsoft's OLE 2.0 Compound File Binary format (magic bytes 0xD0 0xCF 0x11 0xE0 0xA1 0xB1 0x1A 0xE1). The file acts like a miniature filesystem inside a single file:
- Header: 512 bytes containing sector size parameters, FAT sector locations, and directory pointers.
- FAT Sectors: Sector allocation chains mapping multi-sector streams.
- Directory Stream: 128-byte entries defining root, storages, and streams.
- Data Streams:
StarWriterDocument: The primary binary document payload containing formatted paragraphs, tables, and styles.\x05SummaryInformation: Standard OLE property set holding document title, author name, subject, page count, and word count.
2. Text Run Extraction and Control Code Sanitization
Inside StarWriterDocument, textual paragraphs are stored in sequential binary chunks delimited by control words, formatting tokens, and font markers.
To convert this data to clean Markdown:
- FAT Traversal: Reads the sector chain starting at the directory pointer to assemble the complete stream in memory.
- Metadata Recovery: Reads
\x05SummaryInformationto extract properties like title (Property 2) and author (Property 4) for YAML frontmatter. - Run Filtering: Traverses byte buffers to extract printable ASCII and Latin-1 text runs while discarding font table definitions and binary formatting codes.
- Structure Recognition: Detects headings based on line length and case, parses bullet characters (
*,-,1.), and structures the output into valid Markdown.
3. How to Convert SDW to Markdown Online
- Drag and drop your
.sdwfile into SDW to Markdown. - convrtr parses the compound directory, decodes property streams, and reconstructs the document body into Markdown in milliseconds.
- Download your clean
.mdfile or copy the Markdown directly into Obsidian, Notion, or GitHub.
Related reading
Converting AbiWord (.abw, .zabw) to Markdown: Open-Source Word Processing Recovery
Examine AbiWord's native AWML XML document architecture. Learn how Dublin Core metadata, 2D table grids, styled character spans, GZIP compression, and base64 illustrations convert into clean Markdown.
Converting Hangul Word Processor (HWP) to Markdown: OLE CFB & Deflate Forensics
Unpack Hancom Hangul HWP 5.x compound documents. Discover how OLE 2.0 CFB directory tables, Deflate stream decompression, and HWPTAG_PARA_TEXT record parsers extract clean Markdown in browser memory.
Converting ClarisWorks and AppleWorks CWK to Markdown: Recovering Vintage Mac Documents
Learn how to extract text, paragraphs, and headings from vintage ClarisWorks and AppleWorks (.cwk) MacBinary files into clean GitHub Flavored Markdown with 100% private in-browser decoding.
Converting OpenOffice SXW to Markdown: Unpacking Pre-ODF XML Document Archives
Learn how OpenOffice.org 1.x and StarOffice Writer (.sxw) XML packages work. Discover how to extract text, tables, and lists into clean Markdown directly in your browser.
Converting Compressed AbiWord (ZABW) to Markdown: Gzip XML Document Extraction
Learn how AbiWord's compressed .zabw document format packages rich word processing XML inside Gzip containers, and how to convert it to clean GitHub Flavored Markdown.
Converting Apple RTFD Bundles to Markdown: Rich Text & Attachment Extraction
Learn how Apple macOS RTFD compound packages bundle Rich Text Format documents with graphic attachments, and how to convert them into GitHub Flavored Markdown 100% offline.