Skip to content
My Python Tools
Menu
Frontpage
Tools
About me
Search for a tool
Search
All tools
Data Formats
To code variable
To code variable
Convert JSON/YAML/TOML/CSV/XML to a code variable assignment.
json
PyYAML
tomllib
csv
xml.etree.ElementTree
Format
JSON
YAML
TOML
CSV
XML
Input
(required)
Language
Python
JavaScript
PHP
Ruby
C#
Java
Go
Rust
R
Variable name
Indent
Run
Result
Report a problem with this tool