Data Converter icon

Data Converter

Convert between various data formats - Base64, Binary, JSON, XML, YAML, CSV, HTML, and more

Overview

The node performs URL decoding on input text data. It takes a URL-encoded string and converts it back to its original, human-readable form by decoding percent-encoded characters. This operation is useful when working with URLs or web data that have been encoded for safe transmission over the internet.

Common scenarios include:

  • Decoding query parameters from URLs before processing them.
  • Converting URL-encoded form data into readable text.
  • Preparing URL-encoded strings for display or further manipulation.

For example, decoding the string Hello%20World%21 results in Hello World!.

Properties

Name Meaning
Input Data The URL-encoded text string to decode.
Binary Property Name (Optional) Name for the output binary property if the output is binary data (not used here).

Output

The node outputs a JSON object with a single field:

  • result: Contains the decoded URL string.

If the node were configured to output binary data (not typical for URL decode), it would provide the decoded content as binary under the specified binary property name.

Example output JSON:

{
  "result": "Hello World!"
}

Dependencies

  • No external services or API keys are required.
  • The node uses internal utility functions for URL decoding.
  • No special environment variables or n8n configurations are needed.

Troubleshooting

  • Input not properly decoded: Ensure the input string is correctly URL-encoded. Malformed encoding may cause errors or unexpected output.
  • Empty result: If the input is empty or null, the output will also be empty.
  • Error messages: If an error occurs during decoding, the node will throw an error unless "Continue On Fail" is enabled, in which case the error message will appear in the output JSON under error.

Links and References

Discussion