In the process of managing text files, a large number of text files with extensions such as txt, html, json, csv, srt need to have the first line of text as the file name, making it more intuitive to handle files and distinguish their contents. In plain text files, this is often used to segment chapters and titles of novels. Below is an introduction on how to batch rename these notepad and plain text files using the first line of content.
1. Use Cases
Use a part or all of the content from the first line of files in plain text formats such as txt, html, json as the file name.
For example: Text files in Test.txt, Test.html, Test.json formats
If the first lines contain Apple, Banana, Cherry respectively, after renaming they become Apple.txt, Banana.html, Cherry.json
2. Effect Preview
Before processing:

After processing:

3. Operation Steps
Open ć HeSoft Doc Batch Tool ć, select ćFile Nameć-ćRename Text File Using First Lineć.

ćAdd FilesćAdd single or multiple notepad/plain text files that need to be renamed.
ćImport Files from FolderćImport a folder containing a large number of notepad/plain text files that need to be renamed.
You can also drag files directly into the area below. Then click next step.

ćOnly capture the first how many characters?ć1 letter is 1 character. If capturing all content from the first line, leave it empty.

After processing is complete, click the save location to view the renamed text files.
