Batch removal of the blank part at the beginning of the entire content in a large number of TXT plain text files


TranslationEnglishFrançaisDeutschEspañol日本語한국어Update Time2025-06-07 20:22:36

Disclaimer: All images, text, and video content on the website are for reference only and may not be the latest, correct, or accurate. In case of any dispute, please refer to the actual experience effect!

When system- or tool-generated text files contain extraneous leading whitespace, these spaces impact file readability and processing efficiency. In collaborative work, leading whitespace disrupts uniformity of document formatting and results in unnecessary revisions. Furthermore, excessive whitespace wastes storage space—especially when handling a large number of files. Removing leading whitespace makes file content cleaner and allows important information to be presented quickly. Below we explain how to batch remove leading whitespace from multiple TXT notepad files, supporting various text formats including TXT, Json, HTML, XML, SRT, and CSV.

1. Use Cases

In team collaboration or project management involving many TXT notepad files, large amounts of blank content may be generated at the beginning of file content. Here, we can batch remove whitespace at the start of all plain text TXT files, reducing unnecessary revisions and maintaining format consistency.

2. Preview

Before:

image-Batch removal of the blank part at the beginning of the entire content in a large number of TXT plain text files

After:

image-Batch removal of the blank part at the beginning of the entire content in a large number of TXT plain text files

3. Steps

Open【 HeSoft Doc Batch Tool 】, select【Text Tools】-【Remove Whitespace in Text】.

image-Batch removal of the blank part at the beginning of the entire content in a large number of TXT plain text files

【Add Files】Add one or more plain text TXT files that need leading whitespace removed.

【Import Files from Folder】Import all plain text TXT files from a selected folder.

Imported files can be viewed below.

image-Batch removal of the blank part at the beginning of the entire content in a large number of TXT plain text files

【Actions】Check the option below to remove all leading whitespace from the content.

image-Batch removal of the blank part at the beginning of the entire content in a large number of TXT plain text files

After processing, click the save location to view the TXT notepad files where the leading whitespace has been successfully removed.

image-Batch removal of the blank part at the beginning of the entire content in a large number of TXT plain text files

Creation Time2025-04-09 14:59:49

Disclaimer: All images, text, and video content on the website are for reference only and may not be the latest, correct, or accurate. In case of any dispute, please refer to the actual experience effect!

Related Articles

Don't see the feature you want?

Provide us with your feedback, and after evaluation, we will implement it for free!