> For the complete documentation index, see [llms.txt](https://www.shellspells.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.shellspells.net/windows/file-ops/modify-content/convert-case.md).

# Convert Case

Convert the content of a file to uppercase:

{% code overflow="wrap" %}

```powershell
Get-Content C:\path\to\file.txt | ForEach-Object { $_.ToUpper() } | Set-Content C:\path\to\uppercasefile.txt
```

{% endcode %}
