Format Detective
Detect whether text is JSON, YAML, XML, CSV, TOML, INI or a Markdown table, with confidence scores, and convert it. Also available as a REST API.
Format Detective
Detected CSV, 80% confidence
[
{
"name": "Alice",
"age": "30",
"email": "alice@example.com"
},
{
"name": "Bob",
"age": "25",
"email": "bob@example.com"
},
{
"name": "Charlie",
"age": "35",
"email": "charlie@example.com"
}
]Updated . Provided as is. Check the output before you rely on it in production.
How to use Format Detective
- 1
Paste or type your data
Enter data into the input area or click a sample button (JSON, YAML, XML, CSV, TOML) to load example content. Detection runs automatically as you type.
- 2
Review detected formats
Check the detection bar for ranked format matches with confidence percentages. The highest-confidence format is highlighted. Multiple formats may match if the data is valid in more than one grammar.
- 3
Convert to another format
Select a target format from the dropdown and click Convert. The converted output appears in the right panel, ready to copy or download.
- 4
Copy or download the result
Use the copy button to copy converted output to your clipboard, or the download button to save it as a file with the correct extension.
Questions and answers
What is Format Detective?
How does format detection work?
Which format conversions are supported?
Is my data sent to a server?
Can I use this programmatically?
REST API
Base URL
https://aidevhub.io/api/format-detective/ No authentication, fair use. Abusive traffic is throttled at the edge; responses carry no quota headers. CORS enabled. OpenAPI spec
Endpoints
Example
curl "https://aidevhub.io/api/format-detective/detect/?input=%7B%22name%22%3A%22test%22%7D"
Example Response
{
"detected": "json",
"confidence": 1
} For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Dedicated API endpoint
Deterministic outputs, machine-safe contracts, and production-ready examples.
Dedicated API
https://aidevhub.io/api/format-detective/detect/ OpenAPI: https://aidevhub.io/api/openapi.yaml