Data Converter
Convert between various data formats - Base64, Binary, JSON, XML, YAML, CSV, HTML, and more
Actions49
- Base64 Actions
- Binary Actions
- Encoding Actions
- Format Actions
- HTML Actions
- String Actions
Overview
The node converts JSON data into binary format. It is useful when you need to transform structured JSON objects into raw binary data for storage, transmission, or further processing in workflows that require binary inputs. For example, this node can convert JSON configuration data into a binary file to be saved or sent as an attachment.
Properties
| Name | Meaning |
|---|---|
| Input JSON | The JSON data to convert. Example: {"key": "value"} |
| Output Binary | Whether to output the result as binary data (true) or as a Base64-encoded string (false). |
| Binary Property Name | The name of the binary property to store the output if "Output Binary" is enabled. Default is "data". |
Output
- If Output Binary is set to
false, the output JSON contains a Base64-encoded string representation of the binary data. - If Output Binary is set to
true, the output contains no JSON fields but includes a binary property with the specified name containing the raw binary data representing the JSON input serialized as a JSON file (file.jsonwith MIME typeapplication/json).
Dependencies
- No external services or API keys are required.
- The node uses internal utility functions to convert JSON to binary and prepare binary data for output.
Troubleshooting
- Error on invalid JSON input: If the provided JSON string is malformed, the node will throw an error. Ensure the JSON syntax is correct.
- Missing binary property name: When outputting binary data, ensure the "Binary Property Name" is set; otherwise, the node may fail to assign the binary data correctly.
- Unexpected output format: If "Output Binary" is false, the output is Base64 string, not raw binary. To get raw binary output, enable "Output Binary".
Links and References
- JSON format specification
- n8n documentation on working with binary data