---
title: "convert | Grafana Cloud documentation"
description: "Learn about convert functions"
---

# convert

The `convert` namespace contains conversion functions.

## nonsensitive

`convert.nonsensitive` converts a [secret](/docs/alloy/latest/get-started/configuration-syntax/expressions/types_and_values/#secrets) value back into a string.

> Warning
> 
> Only use `convert.nonsensitive` when you are positive that the value converted back to a string isn’t a sensitive value.
> 
> Strings resulting from calls to `convert.nonsensitive` are displayed in plain text in the UI and internal API calls.

### Examples

Alloy ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```alloy
// Assuming `sensitive_value` is a secret:

> sensitive_value
(secret)
> convert.nonsensitive(sensitive_value)
"Hello, world!"
```
