Skip to main content
The url_decode function converts a URL-encoded string back to its original format. Use this function to decode query parameters, analyze encoded URIs, or extract readable text from URL-encoded log data.

For users of other query languages

If you come from other query languages, this section explains how to adjust your existing queries to achieve the same results in APL.
In Splunk SPL, you use urldecode. APL’s url_decode provides the same functionality.
In ANSI SQL, URL decoding varies by database. APL’s url_decode provides standardized URL decoding.

Usage

Syntax

Parameters

Returns

Returns the decoded string in regular representation.

Use case examples

Decode URL-encoded query parameters to analyze user search terms and inputs.Query
Run in PlaygroundOutputThis query decodes URL-encoded URIs to reveal the actual search terms and parameters used by users.
  • url_encode: Encodes strings for URL transmission. Use this to reverse the decoding operation.
  • parse_url: Parses URLs into components. Use this after url_decode for full URL analysis.
  • parse_urlquery: Parses URL query strings. Use this with url_decode to extract query parameters.
  • base64_decode_tostring: Decodes Base64 strings. Use this for Base64 encoding rather than URL encoding.