To save an Excel sheet as a pipe-delimited file, use the Save As dialog and select the Text (Tab delimited) format, then replace tabs with pipes in a text editor, or use a CSV export with a custom delimiter via a workaround since Excel does not natively support pipe delimiters in the Save As menu.

What You'll Need

  • Microsoft Excel (any recent version: 2010, 2013, 2016, 2019, 2021, or Microsoft 365)
  • The Excel workbook containing the sheet you want to export
  • A plain text editor (such as Notepad on Windows or TextEdit in plain text mode on macOS)
  • Basic familiarity with navigating Excel menus and file dialogs

Step-by-Step

  1. Open the Excel workbook that contains the sheet you want to save as pipe-delimited.
  2. Click on the specific worksheet tab at the bottom of the Excel window to ensure it is the active sheet.
  3. Review the data to confirm it is properly formatted — remove any extra blank rows or columns at the edges if they are not needed in the output.
  4. Go to the File menu in the top-left corner of the Excel ribbon.
  5. Select Save As from the sidebar menu.
  6. In the Save As dialog box, choose the folder where you want to save the file.
  7. Click the dropdown menu next to Save as type (located just above the Save button).
  8. From the list, select Text (Tab delimited) (*.txt). This is the closest built-in option since Excel does not offer a direct pipe-delimited format.
  9. Click the Save button. Excel will prompt you if the workbook contains multiple sheets — confirm that you want to save only the active sheet.
  10. If a warning appears about features incompatible with text format, click OK to proceed — formatting, formulas, and multiple sheets will be lost, which is expected for a plain text export.
  11. Navigate to the folder where you saved the .txt file using File Explorer (Windows) or Finder (macOS).
  12. Right-click the saved .txt file and choose Open with > Notepad (Windows) or TextEdit (macOS, ensuring it is in plain text mode).
  13. Once the file is open in the text editor, press Ctrl+H (Windows) or Cmd+Shift+H (macOS) to open the Find and Replace dialog.
  14. In the Find what field, type a tab character. To insert an actual tab, click inside the field and press the Tab key on your keyboard — the field may appear to move the cursor, but it captures the tab.
  15. In the Replace with field, type the pipe symbol: |.
  16. Click Replace All. All tab characters in the file will now be replaced with pipe symbols.
  17. Review the file to ensure the data is correctly separated by pipes and that no unintended changes occurred (e.g., tabs inside quoted text, though rare in simple exports).
  18. Save the file in the text editor (Ctrl+S or Cmd+S). You may keep the .txt extension or rename it to .psv (pipe-separated values) if preferred, though .txt is universally recognized.
  19. Close the text editor. The file is now a pipe-delimited text file ready for use in other systems that accept this format.

Common Mistakes

  • Attempting to find a 'Pipe Delimited' option directly in Excel’s Save As menu — this option does not exist in any standard version of Excel.
  • Forgetting to activate the correct worksheet before saving, leading to exporting the wrong sheet or the entire workbook in an incompatible format.
  • Using the Find and Replace tool incorrectly by typing the literal text 'tab' instead of an actual tab character in the Find what field.
  • Replacing tabs with pipes in the original Excel file before saving, which corrupts the data and does not change the export format.
  • Saving the file as CSV or another format and then trying to change the delimiter, not realizing that CSV uses commas and must be processed separately.
  • Not checking the exported file after replacement, missing issues like extra pipes from empty cells or misaligned data.
  • Using a word processor like Microsoft Word instead of a plain text editor, which may introduce hidden formatting or smart quotes that break the delimiter structure.

Tips

  • If you frequently need pipe-delimited exports, consider recording a macro that automates the Save As (as tab-delimited) and the find-and-replace process, though note that macros cannot run the external text editor step without additional scripting.
  • For large datasets, verify that your text editor can handle large files — Notepad may struggle with files over a few hundred MB; consider using Notepad++ or VS Code for better performance.
  • Always keep a backup of the original Excel file before exporting, especially if you plan to delete or modify data after export.
  • If your data contains pipe symbols (|) naturally, they will be interpreted as delimiters upon import — either escape them according to the target system’s rules or choose a different delimiter like ^ or ~ if supported.
  • Some databases and ETL tools allow you to specify the delimiter during import — if so, save as tab-delimited or CSV and set the delimiter to pipe during the import process instead of modifying the file.
  • To insert a true tab character in Find and Replace on Windows, you can also copy a tab from between two cells in Excel (select a cell, press F2, then copy the space between characters if a tab exists — though this is unreliable); pressing the Tab key directly in the Find what field is the most reliable method.
  • On macOS, if TextEdit opens the file in rich text mode, go to Format > Make Plain Text before editing to ensure invisible formatting doesn’t interfere.

Troubleshooting

If the file does not appear correctly pipe-delimited after following the steps:

  • Issue: The file still shows tabs or looks like spaced columns.
  • Fix: You likely did not replace the tab characters correctly. Reopen the file in the text editor and ensure you used an actual tab (not the word 'tab') in the Find what field. Try copying a tab from the file: highlight between two fields where you know a tab should be, copy it, and paste it into the Find what field.
  • Issue: The data appears misaligned or has extra pipes.
  • Fix: Empty cells in Excel export as consecutive tabs, which become || when replaced — this is correct for pipe-delimited format and represents empty fields. If this causes issues in import, consider whether your target system treats multiple delimiters as a single separator or requires quoting.
  • Issue: The file saves but opens as gibberish or shows strange characters.
  • Fix: You may have saved in the wrong format (e.g., Unicode text or PDF instead of Text (Tab delimited)). Go back to Excel, repeat Save As, and double-check that Text (Tab delimited) is selected.
  • Issue: Excel warns that the file may contain features incompatible with text format and you clicked Cancel.
  • Fix: You must click OK to proceed with the text export. The warning is expected — formulas, formatting, and multiple sheets cannot be saved in a plain text format.
  • Issue: You cannot find the Text (Tab delimited) option in the Save as type dropdown.
  • Fix: Scroll through the list — it is usually near the bottom. If you don’t see it, ensure you are not trying to save from within a protected view or compatibility mode. Try saving a copy of the file first.
  • Issue: After replacing tabs with pipes, some fields are merged incorrectly.
  • Fix: This can happen if your original data contains tab characters inside cell values (e.g., from copied text). To avoid this, clean the data in Excel first by using Find and Replace within Excel to replace tabs with spaces or another placeholder before exporting.

Frequently Asked Questions

Can I save directly as pipe-delimited in Excel without using a text editor?

No, Excel does not offer a pipe-delimited option in the Save As menu. The closest native options are tab-delimited or CSV (comma-delimited). You must export to one of these formats and then replace the delimiter with a pipe using a text editor or script.

Will saving as pipe-delimited preserve my formulas, formatting, or multiple sheets?

No. Plain text formats like pipe-delimited files only save the raw cell values as text. All formulas, formatting, cell colors, multiple sheets, and workbook structure are lost during export. This is normal and expected for any text-based export.

Is there a way to automate this process if I need to do it regularly?

Yes, you can use a VBA macro to save the active sheet as tab-delimited text, then use a scripting tool like PowerShell or Python to read the file and replace tabs with pipes. However, Excel’s macro environment cannot directly interact with external text editors for the find-and-replace step without additional automation.

What should I do if my data already contains pipe symbols?

If your data includes the | character, it will be interpreted as a delimiter when the file is imported, potentially splitting fields incorrectly. To prevent this, either escape the pipes according to your target system’s specification (e.g., by wrapping fields in quotes) or choose a less common delimiter like ^ or ~ if supported by the importing system.

Can I use Notepad++ or another code editor instead of Notepad?

Yes, and it is often better for large files. Notepad++, VS Code, or Sublime Text handle large text files more efficiently and offer stronger search and replace features. Ensure the file is opened in plain text mode and that you are replacing actual tab characters with the pipe symbol.

Why does my exported file show double pipes (||) in some places?

This represents empty cells in your Excel sheet. When Excel exports to tab-delimited format, each cell is separated by a tab, so two consecutive tabs (from an empty cell between two filled ones) become || after replacement. This is correct behavior and indicates a missing value, not an error.