# Converting files between various character sets and usages

**URL:** <https://linux-tips.com/t/converting-files-between-various-character-sets-and-usages/161>\
**Category:** Shell\
**Created:** [April 21, 2008, 10:41am UTC](https://linux-tips.com/t/converting-files-between-various-character-sets-and-usages/161 "2008-04-21T10:41:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Debuser](https://linux-tips.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@Debuser](https://linux-tips.com/u/Debuser)\
**Post date:** [April 21, 2008, 10:41am UTC](https://linux-tips.com/t/converting-files-between-various-character-sets-and-usages/161/1 "2008-04-21T10:41:32Z")

</div>

If you need any type of character set conversion, you can use `recode` tool.

It is works for lots of character sets and it is even supports some other operations: converting to base64, quoted-printable, CRLF conversions etc.

You can find a list of conversion options with:

```
recode -l | less

```

If you want to change a file’s encoding iso-8859-9 to utf8:

```
recode ISO-8859-9..UTF8 < example.txt > example.txt.utf8

```

Or if you want to base64 encode:

```
recode ../b64 < example.txt > example.txt.b64
```
