---
title: uppercased
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsstring/uppercased
---

# uppercased

An uppercase representation of the string.

## Declaration

```swift
var uppercased: String { get }
```

## Discussion

Discussion This property performs the canonical (non-localized) mapping. It is suitable for programming operations that require stable results not depending on the current locale. Case transformations aren’t guaranteed to be symmetrical or to produce strings of the same lengths as the originals. See lowercased for an example. important: When working with text that’s presented to the user, use localizedUppercase or uppercased(with:) instead.

## See Also

### Changing Case

- [lowercased](foundation/nsstring/lowercased.md)
- [localizedLowercase](foundation/nsstring/localizedlowercase.md)
- [lowercased(with:)](foundation/nsstring/lowercased(with:).md)
- [localizedUppercase](foundation/nsstring/localizeduppercase.md)
- [uppercased(with:)](foundation/nsstring/uppercased(with:).md)
- [capitalized](foundation/nsstring/capitalized.md)
- [localizedCapitalized](foundation/nsstring/localizedcapitalized.md)
- [capitalized(with:)](foundation/nsstring/capitalized(with:).md)
