---
title: "uppercased(with:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/stringprotocol/uppercased(with:)"
---

# uppercased(with:)

Returns a version of the string with all letters converted to uppercase, taking into account the specified locale.

## Declaration

```swift
func uppercased(with locale: Locale?) -> String
```
