.WS

WS File

WordStar Document
Ask a question
QUICK ANSWER

A WS file is a WordStar document, a text file created by WordStar, the dominant word processor of the late 1970s and early 1980s. Open it with LibreOffice Writer (free), which has a built-in WordStar import filter. If the text looks garbled with odd accented characters, that is a known WordStar encoding quirk - LibreOffice decodes it correctly.

Developer: MicroPro International (later SoftKey / WordStar International) Category: Text Files MIME: application/x-wordstar
OPENS ON Windows macOS Linux
Related: .DOC · .ODT · .DOCX · .GDOC

On this page

19k+ extensions indexed
Last reviewed Sep 7, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the WS file format?

.ws is a WordStar Document file - the native format of WordStar, the dominant word processor of the early 1980s developed by MicroPro International. Originally running on CP/M systems, WordStar moved to MS-DOS and early Windows, and the .ws extension was used specifically by WordStar versions 5.0 through 7.0.

Despite resembling a plain text file, a .ws document stores formatting through two mechanisms embedded directly in the text stream. Inline control characters mark styles such as bold (^B) and underline (^S), while lines beginning with a period serve as "dot commands" - for example .lm to set the left margin or .pa to force a page break. In files created by WordStar 4.0 and earlier, the high bit of the last byte of each word was set as a word-wrap flag, which causes those files to appear garbled in modern UTF-8 editors unless specifically decoded.

.ws files carry no fixed magic-byte signature; identification relies on recognising the characteristic dot-command and control-character patterns inside the file.

WordStar was discontinued in the 1990s and has been superseded by modern formats such as .DOCX and .RTF. The underlying plain-text content of most .ws files remains readable in any text editor, though the embedded control codes will appear as stray characters unless the application understands them. LibreOffice Writer and Corel WordPerfect include import filters for legacy WordStar files. Related version-specific extensions include .ws2, .ws3, .ws4, .ws5, .ws6, and .ws7.

Security & safety

RISK: LOW

WordStar .ws files are plain-text documents with formatting codes - they cannot execute and carry no macros, so they are essentially harmless. The only real risks are misidentification (an .ws that is actually a script could in theory run code, but Windows scripts use .wsf/.vbs/.js, not .ws) and the cosmetic confusion of garbled high-bit characters in old files. As always, only run anything if you are sure of what it is; a genuine WordStar document is safe to open in a text editor.

Format details

in a nutshell
FULL NAMEWordStar Documentaka WordStar text file, WS document
DEVELOPERMicroPro International (later SoftKey / WordStar International)since 1978 (WordStar 1.0 for CP/M); .ws used by WordStar 5.0-7.0 for DOS/Windows
CATEGORYText Files
MIME TYPEapplication/x-wordstar
TYPEPlain text with embedded control characters (WordStar wrapper)
This extension is also used by…
  • Windows Script File (Microsoft) - The site's database name labels .ws as a 'Windows script file', but Microsoft's actual scripting extension is .wsf; .ws as a script is rare/informal.
  • Worksheet (Worksheet Builder / SmartWare) - Some worksheet applications save .ws data files, opened by their own software (e.g. SmartWare).
  • Wondershare project / EQ data file - A few niche apps (Wondershare tools, statistics packages) have used .ws for their own data.

Programs that open WS files

Windows4 apps
Windows Notepad Built-in Opens the file as plain text; fine for newer WordStar files, garbled for high-bit pre-5.0 documents.
Corel WordPerfect Paid WordPerfect can import legacy WordStar documents; use File > Open and select the .ws, then save in a modern format.
LibreOffice Writer Open-source Best free route: File > Open and pick the .ws - LibreOffice has a WordStar import filter that decodes the formatting. Then Save As DOCX/PDF.
Notepad Open-source Quick raw view of the text; formatting codes show as control characters. For pre-5.0 files the text may look garbled - use LibreOffice for a clean import.
macOS1 app
LibreOffice Writer Open-source Free; File > Open the .ws via its WordStar filter, then export to a modern format. TextEdit only shows raw text.
Linux2 apps
gedit Open-source Plain-text view only; shows the words but not formatting and may render high-bit characters oddly. Use LibreOffice for proper import.
LibreOffice Writer Open-source Preinstalled on most distros; File > Open imports the WordStar document.

Technical details

deep spec
DeveloperMicroPro International (later SoftKey / WordStar International)
Primary platformCP/M, MS-DOS, Windows (legacy)
MIME typeapplication/x-wordstar
Format typePlain text stream with embedded control characters and dot commands
Character encoding7-bit ASCII with high-bit word-wrap flags (pre-5.0); 8-bit text with inline control codes (WordStar 5.0+)
File signature (magic bytes)None - no fixed header or magic number; format identified by internal patterns
Typical file size1 KB - 200 KB
Inline formatting codesControl characters embedded in the text stream (e.g. ^B = bold, ^S = underline, ^Y = strikethrough)
Page-layout dot commandsPeriod-prefixed commands on dedicated lines (e.g. .lm left margin, .rm right margin, .pa page break)
Format versioningTied to WordStar release (4.0, 5.0, 6.0, 7.0); the high-bit word-wrap trick was dropped in later versions
Related extensions.ws2, .ws3, .ws4, .ws5, .ws6, .ws7, .wsd
Superseded byModern word-processor formats including .doc, .docx, .rtf, .odt
Released1978 (WordStar 1.0 for CP/M); .ws used by WordStar 5.0-7.0 for DOS/Windows
Latest versionWordStar 7.0 (1992, DOS); WordStar for Windows 2.0 (1994) - product discontinued
Specificationwww.loc.gov

WS conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with WS files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about WS files.

Frequently asked questions

What is a WS file?
Most commonly a WordStar document - text written in WordStar, the leading word processor of the early 1980s. It is plain text with embedded formatting codes. (The extension is also used by some worksheet and script tools.)
How do I open a WS file?
Open it in LibreOffice Writer (free), which has a WordStar import filter that decodes the formatting; Corel WordPerfect also imports it. A plain text editor like Notepad shows the words but not the formatting.
Why does my WS file look garbled?
WordStar versions before 5.0 set the high bit of the last letter of each word, so a modern UTF-8 editor renders those letters as odd accented characters. Open the file in LibreOffice Writer, which decodes it correctly.
How do I convert a WordStar WS file to Word or PDF?
Open the .ws in LibreOffice Writer and Save As .docx (or .doc), or Export As PDF. Corel WordPerfect can do the same.
Is .ws a Windows script file?
Not really - Microsoft's Windows Script File extension is .wsf, not .ws. Some catalogs label .ws as a script, but the established .ws format is the WordStar document.
Can I still get WordStar to open these files?
WordStar is discontinued and hard to run on modern systems. You do not need it - LibreOffice Writer and WordPerfect both import WordStar documents directly.

References

1Library of Congress - WordStar File Format Family (FDD000552)www.loc.gov
2Just Solve the File Format Problem - WordStarjustsolve.archiveteam.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.NOMEDIAAndroid No-Media Marker File
7.RPMSGRestricted Permission Message
8.TMPTemporary File
9.MDMarkdown Document
10.BINCD/DVD Disc Image (BIN/CUE)

Related extensions

.DOCMicrosoft Word 97-2003 Document
.ODTOpenDocument Text
.DOCXMicrosoft Word Open XML Document
.GDOCGoogle Docs Shortcut (Link to a Google Docs document)
.LSTList File (generic plain-text list / listing)
.VNTvNote (mobile phone text note / memo)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z