Data Converter
Actions49
- Base64 Actions
- Binary Actions
- Encoding Actions
- Format Actions
- HTML Actions
- String Actions
Overview
The node provides a versatile "Data Converter" tool that supports multiple data format conversions. Specifically, for the Base64 to JSON operation under the Base64 resource, it decodes Base64-encoded strings into JSON objects. This is useful when you receive data encoded in Base64 (e.g., from APIs, files, or other systems) and need to convert it back into structured JSON for further processing or analysis.
Common scenarios:
- Decoding Base64-encoded JSON payloads received from webhooks or APIs.
- Processing encoded configuration or metadata stored as Base64 strings.
- Integrating with systems that transmit JSON data in Base64 format for transport safety.
Example:
If you have a Base64 string like eyJrZXkiOiAidmFsdWUifQ== (which encodes {"key": "value"}), this node will decode it and output the JSON object { "key": "value" }.
Properties
| Name | Meaning |
|---|---|
| Input Data | The Base64-encoded string to decode into JSON. |
| Binary Property Name | (Not applicable for this operation; relevant only if outputting binary data.) |
Note: For this operation, the main input property is Input Data, which expects a Base64 string representing JSON data.
Output
The node outputs an array of items where each item contains a json field holding the decoded JSON object parsed from the Base64 input.
- The
jsonoutput field contains the parsed JSON object. - No binary output is produced by default for this operation.
Example output structure:
[
{
"json": {
"key": "value"
}
}
]
Dependencies
- No external services or API keys are required.
- The node relies on internal utility functions to perform Base64 decoding and JSON parsing.
- No special environment variables or credentials are needed.
Troubleshooting
- Invalid Base64 string: If the input is not valid Base64, the node will throw an error during decoding. Ensure the input string is correctly Base64-encoded.
- Invalid JSON after decoding: If the decoded Base64 string is not valid JSON, parsing will fail. Verify that the Base64 string encodes a proper JSON string.
- Empty input: Providing empty or missing input data will cause errors or empty output. Always provide valid Base64-encoded JSON strings.
- To handle errors gracefully, enable the node's "Continue On Fail" option to capture errors per item without stopping the workflow.
Links and References
- Base64 Encoding - Wikipedia
- JSON Format - Official Specification
- n8n Documentation - Data Converter Node (general reference for the node)