If you don't want to install software, you can use online tools to convert the contents of a RAR archive directly into a text format:

This will create a new file called list.txt containing all filenames from the archive.

If the .rar file contains text documents (like .txt , .docx , or .pdf ), you simply need to unzip it: