# How to convert a message to CSV data format

In this tutorial we will be converting a valid key\value pair of data in the message to CSV format and vice versa.

Converting CSV string to object

In this video we will be using CSV node to convert a CSV string to a javascript object inside Kumologica flow.

The input used in this video is given below.

name,age,location
John,35,Sydney
Tony,46,California
Harry,46,California

Link to video

Converting object to CSV string

In this video we will be using CSV node to convert an object to CSV string content inside Kumologica flow.

The input used in this video is given below.

[
  {
    "name": "John",
    "age": 35,
    "location": "Sydney"
  },
  {
    "name": "Tony",
    "age": 46,
    "location": "California"
  },
  {
    "name": "Harry",
    "age": 46,
    "location": "California"
  }
]

Link to video