# Chalk SQL Reference: URL Functions
source: https://docs.chalk.ai/chalksql-docs#section-url-functions

## `from_base64url(string)`
source: https://docs.chalk.ai/chalksql-docs#from_base64url

Decodes a Base64url-encoded `string` to binary data.

**Parameters**

- `string`: `large_string`
  The input `string`.

## `to_base64url(binary)`
source: https://docs.chalk.ai/chalksql-docs#to_base64url

Encodes `binary` data to a Base64url string.

**Parameters**

- `binary`: `large_binary`
  The input `binary` value.

## `url_decode(value)`
source: https://docs.chalk.ai/chalksql-docs#url_decode

Decodes URL-encoded characters in a string.

**Parameters**

- `value`: `large_string`
  The input `value`.

## `url_encode(value)`
source: https://docs.chalk.ai/chalksql-docs#url_encode

URL-encodes special characters in a string.

**Parameters**

- `value`: `large_string`
  The input `value`.

## `url_extract_fragment(url)`
source: https://docs.chalk.ai/chalksql-docs#url_extract_fragment

Extracts the fragment portion (after #) from a URL.

**Parameters**

- `url`: `large_string`
  The URL to request.

## `url_extract_host(url)`
source: https://docs.chalk.ai/chalksql-docs#url_extract_host

Returns the host from a URL.

**Parameters**

- `url`: `large_string`
  The URL to request.

## `url_extract_parameter(url, name)`
source: https://docs.chalk.ai/chalksql-docs#url_extract_parameter

Extracts the value of a specific query parameter from a URL.

**Parameters**

- `url`: `large_string`
  The URL to request.
- `name`: `large_string`

## `url_extract_path(url)`
source: https://docs.chalk.ai/chalksql-docs#url_extract_path

Returns the path from a URL.

**Parameters**

- `url`: `large_string`
  The URL to request.

## `url_extract_port(url)`
source: https://docs.chalk.ai/chalksql-docs#url_extract_port

Extracts the port number from a URL.

**Parameters**

- `url`: `large_string`
  The URL to request.

## `url_extract_protocol(url)`
source: https://docs.chalk.ai/chalksql-docs#url_extract_protocol

Returns the protocol from a URL.

**Parameters**

- `url`: `large_string`
  The URL to request.

## `url_extract_query(url)`
source: https://docs.chalk.ai/chalksql-docs#url_extract_query

Extracts the query string portion (after ?) from a URL.

**Parameters**

- `url`: `large_string`
  The URL to request.
