---
title: "Decode a percent-encoded URL string"
method: POST
path: "/url-decode.php"
tags: ["encoding"]
---

# Decode a percent-encoded URL string

`POST /url-decode.php`

## Request

- Base URL: `https://mate.tools/api/v1`
- URL: `https://mate.tools/api/v1/url-decode.php`
- Auth: none declared

Decodes a percent-encoded URL string back to its original text. `mode=component` (default, rawurldecode). `mode=form` interprets `+` as space.

## Request body

- object
  - `encoded` string, required
  - `mode` 'component' | 'form'

## Response `200`

Success

## Other responses

- `400`: Malformed request
- `413`: Request body or text exceeds 1 MB
- `429`: Rate limit exceeded (60/min, 600/hour per IP). Includes Retry-After header.

---

[API](https://skmtc.dev/mate/apis/mate-tools-api.md) · [All operations](https://skmtc.dev/mate/apis/mate-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mate/apis/mate-tools-api/revisions/874670b78962?raw)
