Do you know BBEdit?
It's still after many years it is my favorite text editor on MacOS.
I've been using it since version 6.x around year 2000, first the Light version and than full version later.
You can use BBEdit to edit any text file, convert between different line endings and text encodings.
As BBEdit can be downloaded and tested for free, please give it a try today.
Thanks Bare Bones Software, Inc. for making it.