How to Open a PRN File in Windows 10

To open a .prn file in Windows 10, right-click it, choose Open with > Notepad, and look at the first line. That tells you which of four kinds of PRN file you have, and each one opens a different way: readable columns of text open in Excel, a file that starts with %!PS converts to PDF with Ghostscript, a file that starts with %PDF is already a PDF, and a file full of symbols is printer code that you send straight to a matching printer with the copy /b command.

Applies to: Windows 10 version 22H2 with Notepad, Command Prompt and Excel for Microsoft 365 (Excel 2016 and later work the same way). The same checks and tools work on Windows 11. Microsoft ended Windows 10 support on October 14, 2025; PCs enrolled in Extended Security Updates get security fixes through October 12, 2027.

What a PRN file is

The .prn extension is shared by two unrelated kinds of file, which is why one fix never works for everyone.

  • A print job saved to a file. When someone ticks Print to file in a Windows print dialog, the printer driver writes everything it would have sent to the printer into a .prn file instead. That includes the page content plus commands for margins, paper size, trays and fonts, written in the language of that particular printer (often PostScript or PCL).
  • A spreadsheet saved as plain text. Excel’s Formatted Text (Space delimited) save option creates a .prn file. Microsoft’s text format list for Excel describes it as the Lotus space-delimited format, and it saves only the active sheet. Old Lotus 1-2-3 files and some accounting and lab programs export the same kind of text table.

A print job is made for one printer model, not for an app. It doesn’t contain your original Word or PDF document, so there’s no way to turn it back into an editable file. The best you can do is print it, or render the pages as a PDF.

Step 1: Check which kind of PRN file you have

If you can’t see the .prn part of the name, turn on extensions first. The steps are in showing file extensions in Windows 10.

  1. Make a copy of the file (select it, press Ctrl + C, then Ctrl + V) and work on the copy. Print data breaks easily, so keep the original untouched.
  2. Right-click the copy and choose Open with. If Notepad is in the list, select it. If not, choose Choose another app, select More apps, pick Notepad, and click OK. Leave Always use this app to open .prn files unticked.
  3. Look at the first few lines and match them to this table:
Notepad showing the first line of a PostScript PRN file starting with %!PS-Adobe-3.0 next to a PCL PRN file starting with @PJL
The recreated examples show PostScript’s %!PS header on the left and PJL/PCL printer data on the right. Printer-control and binary bytes may appear as boxes or symbols in Notepad; their exact appearance varies. All sample content is fictional.
What you see at the topWhat it isGo to
Neat rows and columns of words and numbersA text table from Excel or another programMethod 1: Excel
%!PS-Adobe-3.0 or another line starting with %!PSA PostScript print jobMethod 2: PostScript to PDF
%PDF-1. followed by a version numberPDF data with the wrong extensionMethod 3: rename a copy
Lines starting with @PJL, small boxes, or mostly random symbolsPrinter code, usually PCL or a printer maker’s own languageMethod 4: send it to a printer

Close Notepad without saving. If it asks whether to save changes, choose Don’t save. Saving can strip or change bytes the printer needs.

Method 1: Open a text-table PRN file in Excel

Excel can’t usually open a PRN file by double-clicking, because Windows doesn’t link .prn to Excel. Open it from inside Excel instead.

  1. Open Excel and select File > Open > Browse.
  2. Go to the folder that holds the file. In the file type list next to the File name box, choose Text Files (it covers .prn, .txt and .csv) or All Files.
  3. Select the .prn file and click Open. The Text Import Wizard opens.
  4. In step 1 of the wizard, choose Fixed width, since space-delimited PRN files line columns up with spaces. If your data has a title row, tick My data has headers. Click Next.
Excel Text Import Wizard step 1 with Fixed width selected and a preview of a space-delimited PRN table
Choose Fixed width when the PRN table uses spaces to align fields. This recreated Text Import Wizard shows fictional Name, City and Amount columns, with headers enabled and UTF-8 file origin.
  1. In step 2, check the break lines in the preview. Click to add a break, drag a line to move it, or double-click a line to remove it. Click Next.
  2. In step 3, select any column of codes, ZIP codes or IDs with leading zeros and set it to Text so Excel doesn’t drop the zeros. Click Finish.
  3. Check that each value sits in its own column, then choose File > Save As and pick Excel Workbook (*.xlsx). Otherwise Excel keeps saving back to the plain-text .prn file and drops formulas and formatting.

If the columns are separated by commas or tabs rather than lined-up spaces, choose Delimited in step 1 and tick the matching separator instead. The same import ideas apply to comma-separated files, covered in importing a CSV file into Excel.

One limit to know about: Microsoft’s article on the .prn line limit explains that Formatted Text files are capped at 240 characters per line, and longer rows wrap onto the next line. If a very wide table looks scrambled, that’s the cause, and you’ll need the original spreadsheet or a CSV export from the person who made it.

Method 2: Convert a PostScript PRN file to PDF

A PostScript print job describes complete pages, so a PostScript interpreter can draw them as a PDF you can read on screen. Ghostscript is a free, open-source interpreter that does this from Command Prompt.

  1. Download the 64-bit Windows release marked Ghostscript AGPL Release from the Ghostscript downloads page and run the installer. The AGPL release is free for personal use; the commercial license is for companies that bundle it into their own products.
  2. Copy the .prn file to a short folder path, such as C:\PRN, and give the copy a simple name such as invoice.prn.
  3. Open File Explorer, go to that folder, click the address bar, type cmd and press Enter. Command Prompt opens already pointed at the folder. Other ways to open it are in opening Command Prompt in Windows 10.
  4. Type this command, with the full path to gswin64c.exe in quotes, and press Enter. The installer puts it in the bin folder of the version-numbered folder under C:\Program Files\gs, so check the folder name on your PC first:
    "C:\Program Files\gs\gs10.08.0\bin\gswin64c.exe" -sDEVICE=pdfwrite -o invoice.pdf invoice.prn
  5. Wait for the command prompt to come back. Ghostscript prints a line for each page it processes. A new file called invoice.pdf appears in the folder.
Command Prompt showing a Ghostscript pdfwrite command converting invoice.prn to invoice.pdf, with the new PDF in File Explorer
This quiet Ghostscript example uses pdfwrite and the output option to create invoice.pdf, then returns to the prompt. The extra -q suppresses normal messages. The version folder and files are illustrative; use the installed version’s path.
  1. Double-click invoice.pdf. It opens in Microsoft Edge or your default PDF reader.

The gswin64c program and the -sDEVICE=pdfwrite and -o options come from Ghostscript’s own usage documentation. The -o option also stops Ghostscript from waiting for a keypress after each page.

Using Adobe Acrobat instead

If you already pay for Adobe Acrobat, you don’t need Ghostscript. Adobe’s page on converting PRN to PDF describes opening the file with File > Open (or dragging it into the Acrobat window) and then saving it with File > Save As as a PDF. Acrobat Pro’s Distiller is the part that handles PostScript. If Acrobat doesn’t list the file, rename a copy from .prn to .ps and try again. This route works for PostScript print jobs; the free Acrobat Reader can’t do the conversion.

Method 3: Open a PRN file that’s really a PDF

If Notepad showed %PDF on the first line, the file is a PDF that was simply saved with the wrong extension. This can happen when someone prints to a PDF printer with Print to file ticked.

  1. Right-click your copy of the file and choose Rename.
  2. Change .prn at the end to .pdf and press Enter. Click Yes when Windows warns that the file might become unusable.
  3. Double-click the file. It should open in Edge like any other PDF.

This is the only case where renaming helps. Renaming a PostScript or printer-code file to .pdf doesn’t change what’s inside, and a PDF reader will say the file is damaged.

Method 4: Send a printer-code PRN file to a printer

Files that look like symbols are meant for a printer, not for a screen. You can print them, but only on the same printer model they were made for, or one that understands the same printer language. On a different printer you’ll usually get pages of random characters, or nothing.

Before you start: sending the wrong file can waste a stack of paper. If a printer starts spitting out pages of gibberish, cancel the job from the printer’s own panel or the Windows print queue.

  1. Share the printer so the command has a name to send to. Select Start > Settings > Devices > Printers & scanners, select the printer, then Manage > Printer properties. On the Sharing tab, tick Share this printer, type a short share name with no spaces, such as Office, and click OK. The full walkthrough is in sharing a printer in Windows 10.
  2. Find your computer’s name under Settings > System > About, next to Device name. In this example it’s ALEX-PC.
  3. Open Command Prompt in the folder that holds the file, as in Method 2.
  4. Type the command below, using your file name, computer name and share name, and press Enter:
    copy /b invoice.prn \\ALEX-PC\Office
  5. Command Prompt should reply 1 file(s) copied. and the printer should start a moment later.
Command Prompt showing copy /b sending invoice.prn to a shared printer and the 1 file(s) copied confirmation
The recreated command and success reply use the fictional ALEX-PC printer share. The binary switch passes printer-control bytes as data. This is an instructional example; no file was sent to a printer.

The /b switch copies the file in binary mode. Microsoft’s copy command reference explains that when the destination is a device, binary mode passes every character through as data, including control characters that the printer reads as commands. This works for USB and network printers once they’re shared. If the printer is on an old parallel port, copy /b invoice.prn LPT1 sends it there directly.

If the file is PCL and you need to see it on screen rather than print it, the same Ghostscript project makes GhostPCL, a separate free download on the GhostPCL downloads page that can render PCL5 and PCL XL files as PDF using the same -sDEVICE=pdfwrite -o options. Files in a printer maker’s private language (some inkjets and label printers) can’t be converted by any general tool.

Stop making PRN files by accident

Most people who get a .prn file didn’t mean to create it. Someone ticked Print to file in a print dialog, or the printer was set to the FILE: port.

  • In the print dialog, untick Print to file before clicking Print.
  • To share a document as a file, choose Microsoft Print to PDF as the printer instead (with Print to file unticked). You get a normal PDF that opens on any device.
  • If every print job turns into a file, open Printer properties, select the Ports tab, and make sure the printer’s real port (USB, WSD or an IP address) is ticked rather than FILE: (Print to File).

Troubleshooting

Excel puts everything in one column

The wizard used the wrong layout. Close the file without saving, open it again, and switch between Fixed width and Delimited in step 1. With Fixed width, check that a break line sits in each gap between columns.

Ghostscript says “‘gswin64c’ is not recognized”

Command Prompt can’t find the program. Type the full path in quotes, as shown in Method 2, and check the version number in the folder name under C:\Program Files\gs.

Ghostscript reports “Unrecoverable error” or makes blank pages

The file probably isn’t PostScript, even if it has a .prn name. Check the first line in Notepad again. A file starting with @PJL can still contain PostScript further down (look for ENTER LANGUAGE = POSTSCRIPT); if it says PCL instead, try GhostPCL.

The copy command says “The network name cannot be found”

The computer name or share name is wrong, or sharing is off. Check both names, make sure the share name has no spaces, and confirm the printer still shows as shared on its Sharing tab.

The printer prints garbage or nothing

The file was made for a different printer language. Ask the sender which printer they printed to, or ask them to send a PDF instead. There’s no reliable way to convert a printer-specific job for another printer.

Should I use an online PRN converter?

Upload sites can handle some PostScript and PCL files, but you’re handing your document to a stranger’s server. Skip them for invoices, payslips, medical records or anything else private, and use Ghostscript on your own PC instead.

How to confirm it worked and undo

  • Excel: each value is in its own cell, and the title bar shows a .xlsx name after you save.
  • PDF: the new PDF opens in Edge and shows the same number of pages the sender expected.
  • Printer: the page looks like a normal document, not lines of code.

Because every method works on a copy, undoing is simple: delete the copy, the new PDF or the new workbook. The original .prn file stays exactly as you received it.

FAQ

Can I edit a PRN print file?

Not in any useful way. It holds printer commands, not an editable document. Convert it to PDF and annotate the PDF, or ask for the original file.

Does WordPad open PRN files?

WordPad can show the text in a text-table PRN file, much like Notepad, but it can’t display a print job’s pages. Microsoft has also dropped WordPad from newer versions of Windows 11, so Notepad and Excel are the better habit.

Is a PRN file dangerous?

Viewing one in Notepad or Excel doesn’t run anything. Treat unexpected .prn attachments with the same caution as any attachment, and make sure the name doesn’t actually end in .exe or .scr.

Why did Windows ask me for a file name when I clicked Print?

The selected printer is a file-based printer, such as Microsoft Print to PDF or Microsoft XPS Document Writer, or Print to file is ticked. XPS output has its own viewer, explained in opening XPS files in Windows 10.

Can a Mac open the same PRN file?

macOS has no built-in PRN viewer, but the file types are the same. A text table opens in Excel or Numbers, and PostScript can be converted to PDF with Ghostscript, which also runs on macOS. Printer code still needs a compatible printer.

Start with the Notepad check on a copy of your file. Once you know which of the four kinds you have, it usually takes only a couple of minutes to read it in Excel, turn it into a PDF, or get it onto paper.