The TXT Notepad file in each line at the beginning of the blank content batch removal
Translation:EnglishFrançaisDeutschEspañol日本語한국어,Updated on:2025-06-07 20:22
A large number of TXT plain text files exported from the system or automatically generated. The beginning of each line of these files sometimes contains extra space content, which greatly affects subsequent parsing. At the same time, when typesetting or beautifying text files, the blank at the beginning of each line will make the document look messy. After cleaning, the browsing experience can be improved, and in large-scale storage, removing excess blank can also save storage space. This article describes how to delete the blank content at the beginning of each line in a large number of TXT notepad files in a unified batch. It supports TXT, Json, HTML, XML, SRT, and CSV text formats.
1. Use Scenarios
when hundreds of TXT plain text are writing the document content or neat content notes, the extra blank part at the beginning of the line will lead to messy typesetting and affect the overall beauty. We can eliminate the blank at the beginning of each line of these files in batches and improve the reading experience.
2. Effect preview
before treatment:
after treatment:
3. Operation steps
open 【HeSoft Doc Batch Tool], select [Text Tool]-[Delete Blank in Text]].

[Add File] Add single or multiple TXT plain text that needs to be deleted at the beginning of each line.
[Import File from Folder] Import all TXT plain text in the selected folder that needs to delete the blank part at the beginning of each line.
You can view the imported files below.

[Operation] Check below to delete the blank at the beginning of each line.

After the processing is completed, click on the save location to view the blank at the beginning of the line to remove the completed TXT file.
