Url Encode Url Decoder
More Tools
Other tools: Base64 Decode | Base64 Image Decoder | Base64 Encode | Base64 Image Encoder

PHP rawurldecode()

rawurldecode - Decode URL encoded string

Function

string rawurldecode ( string $str )

Parameters

$str - The URL to be decoded.

Return value

Returns the decoded URL as a string in which the sequences with percent (%) signs followed by two hex digits have been replaced with literal characters.

Example
<?php
        $str = 'raw%20url%20decode';
        echo "http://example.com/?param=" . rawurldecode( $str );
?>
Output
http://example.com/?param=raw url encode