Multiple notepad, plain text file how to batch rename the first line of content to the file name
Translation:EnglishFrançaisDeutschEspañol日本語한국어,Updated on:2025-06-07 20:22
In the process of managing text files, text files with a large number of extensions such as txt, html, json, csv, srt, etc. need to use the first line of text as the file name of the file to facilitate more intuitive processing of the file and distinguish its contents. In plain text files, the chapter and the name of the novel are usually segmented. The following describes how to batch rename the file names in the first line of these notepad and plain text files.
1. Use Scenarios
the txt, html, json and other plain text format of the first line of a file or all of the content as the file name of the file.
For example: Test.txt, Test.html, Test.json format text files
the content of the first line is Apple, Banana, and Cherry, which are renamed as Apple.txt, Banana.html, and Cherry.json.
2. Effect preview
before treatment:
after treatment:
3. Operation steps
open 【HeSoft Doc Batch Tool], select [File Name]-[Rename Text File with First Line]].

[Add File] Add single or multiple notepad and plain text files that need to be renamed.
[Import File from Folder] Import a folder containing a large number of notepad and plain text files that need to be renamed.
You can also drag files directly below. Then click Next.

[Only intercept the first how many characters?] 1 letter is 1 character. If the entire content of the first row is selected, it is empty.

After waiting for the processing to complete, click Save Location to view the renamed text file.
