Converting file from UTF-16 to ASCII format

Posted on 2011-10-27
Last Modified: 2012-08-13

I am looking for a command line option that will allow me to convert a file in UTF-16 encoding to ASCII. It appears that the "TYPE" command will only work to convert from files from UTF-8 to ASCII. I know there are tools out there to do this but I need a command line driven option.

Thanks in advance for any assistance on this
Question by:Charlie_Melega
    LVL 43

    Expert Comment

    by:Steve Knight
    Can you provide an example file for us please.

    Have you tried a find too perhaps:

    find /v "" yourfile.txt > newfile.txt

    LVL 13

    Expert Comment

    try this one  (recode)
    hope that helps
    LVL 6

    Accepted Solution


    Get-Content -Encoding UTF16 fileinput.txt | Out-File -Encoding ASCII fileoutput.txt
    LVL 43

    Expert Comment

    by:Steve Knight
    Sorry had missed the powershell tag and just saw "MSDOS"

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
    In this previous article (, we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now