---
schema_version: "1"
id: 8930e4b77143fd9d69539af534d636b47d527d12a0c4dc30b3067035659ed53b
title: AMPscript String Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/ampscript/references/string/mc-ampscript-reference-string.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c376c8d010cc363eafbc2a9c984958f6230cd292ea2290d1d8f2c23e535dcc69
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# AMPscript String Functions

Use the AMPscript string functions to display and manipulate strings.

This table lists all of the AMPscript functions related to modifying strings. The value in the Engagement column indicates whether Marketing Cloud Engagement supports the function. The value in the Next column indicates whether Marketing Cloud Next supports the function.

| Function Name                                                  | Description                                                                 | Engagement  | Next        |
| -------------------------------------------------------------- | --------------------------------------------------------------------------- | ----------- | ----------- |
| [Char()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-char.md)                | Returns a character when passed an ASCII character code.                    | ✅&nbsp;Yes | ✅&nbsp;Yes |
| [Concat()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-concat.md)            | Concatenates strings of text.                                               | ✅ Yes      | ✅ Yes      |
| [Format()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-format.md)            | Formats a string in the specified format.                                   | ✅ Yes      | ✅ Yes      |
| [IndexOf()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-index-of.md)         | Returns the position at which a substring occurs within a string.           | ✅ Yes      | ✅ Yes      |
| [Length()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-length.md)            | Returns the number of characters in a string.                               | ✅ Yes      | ✅ Yes      |
| [Lowercase()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-lowercase.md)      | Returns the provided string using only lowercase letters.                   | ✅ Yes      | ✅ Yes      |
| [ProperCase()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-propercase.md)    | Returns specified string with the first letter of each word capitalized.    | ✅ Yes      | ✅ Yes      |
| [RegExMatch()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-regex-match.md)   | Searches for a pattern in a string using a regular expression.              | ✅ Yes      | ✅ Yes      |
| [Replace()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-replace.md)          | Replaces every occurrence of one substring with a different substring.      | ✅ Yes      | ✅ Yes      |
| [ReplaceList()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-replace-list.md) | Replaces one or more substrings with another string.                        | ✅ Yes      | ✅ Yes      |
| [StringToHex()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-to-hex.md)       | Converts each character in a string to its hexadecimal equivalent.          | ✅ Yes      | ✅ Yes      |
| [Substring()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-substring.md)      | Returns a portion of a string, beginning at a specified character position. | ✅ Yes      | ✅ Yes      |
| [Trim()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-trim.md)                | Removes white space from the beginning and end of a string.                 | ✅ Yes      | ✅ Yes      |
| [Uppercase()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-string/mc-ampscript-reference-string-uppercase.md)      | Returns the provided string using only uppercase letters.                   | ✅ Yes      | ✅ Yes      |
