.PRN

PRN File

Printer Output File (Print-to-File)
Ask a question
QUICK ANSWER

A .prn file holds the exact data stream a printer would receive, written in the printer's own page-description language (usually PostScript or PCL). It is not a readable document; you send it straight to a compatible printer or, if it is PostScript, convert it to PDF with GhostScript. Check the first bytes to tell which type you have: '%!PS' means PostScript, 'ESC E' or a PJL header means PCL.

Developer: N/A (generic; created by printer drivers / the Windows print spooler) Category: Page Layout Files Open standard MIME: application/octet-stream
OPENS ON Windows macOS Linux
Related: .PDF · .SGN · .FP3 · .AFPUB

On this page

19k+ extensions indexed
Last reviewed Jul 22, 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 PRN file format?

A .prn file stores content ready for print - the raw page-description stream that an application sends to a printer driver instead of to a physical device. .prn is a generic extension used by many applications; the actual data inside depends on the printer driver selected and can be PostScript, PCL, ESC/P, raw raster, or another page-description language.

.prn files can contain:

  • Formatted text
  • Graphics data and images
  • Graphs and tables
  • Instructions for printers - page count, paper size, print style, and device-specific commands

.prn files can store data in binary or text format. Because the internal format is driver-dependent, .prn files have no fixed file signature. A PostScript .prn typically begins with %!PS, while a PCL .prn usually opens with the escape sequence ESC E (1B 45) or a PJL prologue (\x1b%-12345X@PJL). Inspecting the first bytes reveals which printer language is inside.

.prn files are generated using the Print to file command available in most applications. On Windows, the most direct way to use one is to copy it to a printer port from the command line: copy /b filename.prn LPT1 or redirect it to a network printer share. Ghostscript (with GSview) can open, render, and convert .prn files containing PostScript or PCL data. On Linux and macOS, lpr or the CUPS subsystem can spool a .prn directly to a printer queue.

If a .prn file was produced with Microsoft's XML Paper Specification driver, its extension can be changed to .xps and opened with an XPS viewer. A related Windows print spool format is .spl.

Security & safety

RISK: LOW

A print-job .prn is data, not an executable, and is low-risk. Two caveats: PostScript is a full programming language, so a malicious PostScript .prn could in theory exploit an interpreter - use an up-to-date GhostScript and don't blindly send unknown files to shared/networked printers. Print jobs can also embed the full content of a sensitive document; treat captured .prn files as you would the original.

Format details

in a nutshell
FULL NAMEPrinter Output File (Print-to-File)
DEVELOPERN/A (generic; created by printer drivers / the Windows print spooler)since Print-to-file dates to early PC printing (1980s)
MIME TYPEapplication/octet-stream
TYPESpooled printer data - the page-description stream (PostScript, PCL, ESC/P or raw raster) a printer would receive
STANDARDOpen · royalty-free
This extension is also used by…
  • Excel Space-Delimited Text (.prn) - Microsoft Excel's 'Formatted Text (Space delimited)' save format - a plain-text fixed-width table, unrelated to printing; open it in Excel or any text editor.

Programs that open PRN files

Windows3 apps
Print to printer (command line) Built-in Send raw to a compatible printer - copy /b file.prn \\PC\PrinterShare (printer must match the driver that made it).
GhostScript + GSview / Ghostgum Open-source PostScript print job: open/preview and convert the .prn to PDF (interprets the PostScript inside).
Notepad / Notepad++ Open-source Inspect the first bytes - '%!PS' means PostScript, 'ESC E'/PJL means PCL - to confirm which printer language the job is in.
macOS1 app
GhostScript (Homebrew) / Preview Open-source PostScript print job: convert to PDF with ps2pdf file.prn file.pdf, then view in Preview.
Linux2 apps
Ghostscript Open-source PostScript print job: ps2pdf file.prn or gs to render/preview the page.
lpr / CUPS Open-source Send raw to a matching printer with lpr -o raw file.prn.

Technical details

deep spec
Format typeSpooled printer data - a verbatim copy of the page-description stream written by the print spooler to disk instead of to a printer port
Internal encodingBinary or plain text depending on the page-description language; PostScript and PJL are ASCII-based, PCL and raw raster are largely binary
Printer languagesPostScript, PCL 5/6, PJL, ESC/P, ESC/P2, or raw raster - the specific language is determined by whichever printer driver was selected when printing to file
File signatureNo fixed magic bytes; PostScript variant begins with %!PS (hex 25 21 50 53); PCL variant typically begins with ESC E (1B 45) or a PJL prologue \x1b%-12345X@PJL
MIME typeapplication/octet-stream (no officially registered MIME type exists for .prn)
File structureFlat, uncompressed byte stream starting at offset 0; no container, header table, or compression wrapper
Generation methodCreated via the Print to file option in an application's print dialog; the OS print spooler writes the driver output directly to disk instead of sending it to a port
Playback on WindowsCopy the stream to the target printer port using copy /b file.prn LPT1 or copy /b file.prn \\server\printer from the command line
Playback on Linux / macOSSpool directly using lpr or the CUPS subsystem; lpr -P printername file.prn sends the stream to a named printer queue
Viewing and conversionGhostscript can render, display, and convert PostScript and PCL variants on all platforms; GSview adds a GUI front-end on Windows
Device dependencyTypically non-portable - a .prn produced for one printer model or driver may not print correctly on a different device or driver
Text readabilityPostScript and PJL variants are partially human-readable in a text editor; PCL and raw raster variants are binary and appear as non-printable characters
XPS relationshipA .prn generated with the Microsoft XPS Document Writer driver is an XPS container; renaming the extension to .xps makes it openable in any XPS viewer
Related formats.ps (PostScript source file), .pcl (raw PCL stream), .spl (Windows NT/XP print spool file), .eps (Encapsulated PostScript)
ReleasedPrint-to-file dates to early PC printing (1980s)
Open standardYes · royalty-free

PRN conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with PRN 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 PRN files.

Frequently asked questions

How do I open a PRN file?
A print-to-file .prn is the printer's own code, not a readable document. Send it raw to a matching printer, or - if it's PostScript - preview it or convert it to PDF with GhostScript. Check the first bytes ('%!PS' = PostScript, 'ESC E'/PJL = PCL) to know which it is.
How do I print a PRN file?
Send it raw to a compatible printer (the same driver that created it). Windows: copy /b file.prn \\PC\Printer. Linux/macOS: lpr -o raw file.prn. Viewing it on screen usually isn't possible.
How do I convert PRN to PDF?
If it's a PostScript print job, GhostScript's ps2pdf converts it directly. PCL jobs need GhostPCL (ghostpdl). There's no plain document text to recover - you're rendering the captured page.
Why is my PRN file full of unreadable characters?
Because it's a print job in the printer's own language (PostScript or PCL), not a document. That code is meant to be sent to a printer, not read on screen.
Can I edit a PRN file?
Not in any practical sense - the layout and fonts are frozen into printer code. If you need to change the content, go back to the original application and re-print (or re-export to PDF).

References

1Microsoft - Print to file (Windows printing)support.microsoft.com
2Ghostscript - PostScript/PDF interpreter (ps2pdf)www.ghostscript.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.BINCD/DVD Disc Image (BIN/CUE)
4.PARTPartial Download File
5.MDMarkdown Document
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.PDFPortable Document Format
.SGNPrint Artist Sign / Project File
.FP3FastReport Prepared Report
.AFPUBAffinity Publisher Document
.AFBOOKAffinity Publisher Book
.PRO6ProPresenter 6 Document

Free file tools

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

Open the toolbox

Browse file extensions A-Z