---
title: "CONCAT"
url: "https://help.formsfly.com/en/article/concat"
language: "en"
last_updated: "2023-10-23T11:32:47.389Z"
---

# CONCAT

Joins two or more text items together into a single piece of text.

* * *

### Syntax

`CONCAT**(**value1, value2, ...**)**`

### Examples

You can use literal text in quotes, or a {{fieldname}} from your form.

```plaintext
concat({{name}}, ' works at ', {{companyname}})
```

returns something like:

   `Fred works at ABC Company Ltd`

You can add line breaks with '\\n' - eg:

```plaintext
concat('Hello', '\n', 'Goodbye')
```

returns:

   `Hello`  
   `Goodbye`

### Notes

Similar to the concat() function in MS-Excel.

### Related

[JOIN(string)](https://help.formsfly.com/en/article/join-string)  
[JOIN(repeat)](https://help.formsfly.com/en/article/join-repeat)
