Multiple notepad, plain text file how to batch rename the first line of content to the file name


TranslationEnglishFrançaisDeutschEspañol日本語한국어Updated on2025-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:

image-Multiple notepad, plain text file how to batch rename the first line of content to the file name

after treatment:

image-Multiple notepad, plain text file how to batch rename the first line of content to the file name

3. Operation steps

open 【HeSoft Doc Batch Tool], select [File Name]-[Rename Text File with First Line]].

image-Multiple notepad, plain text file how to batch rename the first line of content to the file name

[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.

image-Multiple notepad, plain text file how to batch rename the first line of content to the file name

[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.

image-Multiple notepad, plain text file how to batch rename the first line of content to the file name

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

image-Multiple notepad, plain text file how to batch rename the first line of content to the file name

Disclaimer: The text, images, videos, etc., on this website are limited to the software version and operating environment used when creating this content. If subsequent product updates cause your operations to differ from the content on the website, please refer to the actual situation!

Related Articles