How to Preserve Fixed Spacing When Saving Excel as PRN
Question details
The user wants to save an Excel spreadsheet as a PRN file while ensuring the fixed-width spacing is preserved and no characters are truncated or missing.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Exporting spreadsheet data to a specific legacy system or printer that requires an exact fixed-width PRN file format.
- Observed behavior
- Saving the file directly to the PRN format causes spacing to appear incorrect and characters to go missing when the output file is opened in text editors like Notepad.
Verify the exact fixed-width layout requirements and acceptable delimiters with the system or administrator that will be receiving the file.
Export as a Fixed-Width TXT File and Rename to PRN
Since Excel's direct PRN export may rely on printer drivers and cause truncation, saving the file as a formatted text document and manually changing the extension is the most reliable workaround.
PRN files are traditionally printer-output files. Modern versions of Excel can sometimes format or truncate data differently based on active printer settings. Bypassing the native PRN export and using a standard delimited text format gives you better control over the output.
Open your worksheet in Excel. Ensure all your column widths are expanded so that no data is hidden, as text exports rely on visual column width to determine spacing.
Click on 'File' > 'Save As'. In the format dropdown menu, select 'Text (Tab delimited) (*.txt)' or the specific delimited format required by your receiving system, and save the file.
Open Windows File Explorer. Go to the 'View' tab and check the box for 'File name extensions' so you can see the .txt at the end of your saved file.
Right-click the newly saved .txt file, select 'Rename', and change the '.txt' extension to '.prn'. Press 'Enter' and confirm the prompt to change the file type.
Right-click the new .prn file, select 'Open with', and choose 'Notepad' to verify that the spacing is correct and no characters are missing.

Check Printer Settings and Contact Microsoft Support
Because PRN export relies on Windows printer settings, modifying your default printer may resolve the issue. If the issue persists after an Office update, escalate it to support.
Try WPS Office for Reliable File Formatting and Exporting
If Microsoft Excel updates are causing missing characters or formatting bugs in your exported files, consider switching to WPS Office. It provides a highly compatible, lightweight, and free alternative to manage your spreadsheets without subscription hassles or unexpected export errors.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Open Your Spreadsheet: Launch WPS Spreadsheet and open your existing Excel data file.
- 3. Export with Confidence: Go to Menu > Save As and choose your desired text format to export your data cleanly and accurately.

Frequently Asked Questions
Why does my PRN file have missing characters when opened in Notepad?
PRN files are designed as printer-output files rather than standard text files. When Excel exports to PRN, it relies on the current default printer driver's settings and visual column widths. This dependency can cause characters to truncate or spacing to appear misaligned when viewed in plain text editors like Notepad.
Can I edit a PRN file after saving it from Excel?
While you can open a PRN file in text editors like Notepad to view or make minor text edits, modifying the file manually can easily break the strict fixed-width spacing required by the receiving system. It is usually much safer to edit the original Excel file and re-export the data.
What is the difference between PRN and CSV formats?
A PRN (Formatted Text, Space Delimited) file uses fixed-width spaces to separate columns, which is often required by legacy databases and specific line printers. A CSV (Comma Separated Values) file uses commas to separate data fields and does not preserve visual column spacing or widths.




