batch convert csv to txt files

I'm interested in batch converting multiple CVS files to TXT files. Is there a Script Editor solution? Or some reliable/safe free app?

MacBook Pro 13″, macOS 10.14

Posted on Dec 14, 2023 1:51 PM

Reply
9 replies

Dec 14, 2023 7:16 PM in response to dmoram01

dmoram01 wrote:

Thanks for the reply! I understand that csv files are basically txt files. But some apps that read .txt files (only) can't seem to read .csv files (I've tried). So I'm interested in being able to batch convert hundreds of csv files to txt files. Changing .csv to .txt manually, one at a time, would take forever. Hence my question: how to batch convert csv files to txt files? Dragging/dropping on TextEdit will open the CSV files. But then I'd have to save each one, one at a time, as txt. Or I'd have to change the file name suffix from .csv to .txt one at a time. I would appreciate help with a script to do this quickly with hundreds of csv files at once.


Okay, so this is unrelated to CSV files, and centrally involves either whatever app is trying to read a text file (and is refusing), or involves performing a bulk or batch file rename. For the latter, Finder does bulk or batch renames.


https://www.cultofmac.com/500434/how-to-use-finders-powerful-bulk-renaming-tools/

https://www.imore.com/how-rename-multiple-files-once-mac


The recalcitrant app may well refuse to read a renamed text file, too. I’ll assume you’ve already confirmed that works here.

Dec 14, 2023 7:09 PM in response to Grant Bennet-Alder

Thanks for the reply! I understand that csv files are basically txt files. But some apps that read .txt files (only) can't seem to read .csv files (I've tried). So I'm interested in being able to batch convert hundreds of csv files to txt files. Changing .csv to .txt manually, one at a time, would take forever. Hence my question: how to batch convert csv files to txt files? Dragging/dropping on TextEdit will open the CSV files. But then I'd have to save each one, one at a time, as txt. Or I'd have to change the file name suffix from .csv to .txt one at a time. I would appreciate help with a script to do this quickly with hundreds of csv files at once.

Dec 15, 2023 5:11 AM in response to Grant Bennet-Alder

I'm a linguist. There's a popular app for doing corpus linguistics analysis. You can create a corpus of texts by uploading one file per text. The files can be in txt or doc formatting. I build my datasets using spreadsheets. For most statistical analyses that's all I need. But the corpus linguistics apps can do a few other things that regular statistics apps/packages don't. I've tried uploading the .csv files but it can't read them.

Dec 15, 2023 6:59 AM in response to dmoram01

dmoram01 wrote:

Thanks! This worked perfectly! I renamed the files, replacing also the .csv extension with .txt, then uploaded all the .txt files to the app I was trying to use, and it created the corpus just fine. Thanks for the suggestions!


Contact the app vendor and suggest they add csv to the supported file types, too. Or allow opening any text-format file.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

batch convert csv to txt files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.