AI Chat Message Formatter
Wrap text-only role and content messages in a messages object.
Supports system, developer, user and assistant roles with text content only.
How to use AI Chat Message Formatter
Load the example, edit the input using the same format, and select Run. Review the output before copying or downloading.
Example input
[
{
"role": "user",
"content": "Explain JSON"
},
{
"role": "assistant",
"content": "JSON represents structured data."
}
]Example output
{
"messages": [
{
"role": "user",
"content": "Explain JSON"
},
{
"role": "assistant",
"content": "JSON represents structured data."
}
]
}Frequently asked questions
What does this tool do?
Wrap text-only role and content messages in a messages object.
What are the limitations?
Supports system, developer, user and assistant roles with text content only.
Does it call an AI API?
No. Tool processing runs in your browser. The site separately loads advertising and analytics scripts.