Text to URL-Escaped Base64

Prepare a standard Base64 value to be placed in a URL query parameter. Base64 represents the input bytes; percent encoding then protects URL-reserved characters.

Input: Text (UTF-8) or original file bytesResult: URL-escaped Base64 text

Text input

Run to see the result

Examples

Bitcoin genesis newspaper headline

Input

The Times 03/Jan/2009 Chancellor on brink of second bailout for banks

Expected answer

VGhlIFRpbWVzIDAzL0phbi8yMDA5IENoYW5jZWxsb3Igb24gYnJpbmsgb2Ygc2Vjb25kIGJhaWxvdXQgZm9yIGJhbmtz
A registry credential from Kubernetes documentation

Input

tiger:pass1234

Expected answer

dGlnZXI6cGFzczEyMzQ%3D
A checksum-sensitive log line with a final newline

Input

event=deploy status=ready

Expected answer

ZXZlbnQ9ZGVwbG95IHN0YXR1cz1yZWFkeQo%3D
A French café in precomposed Unicode

Input

café

Expected answer

Y2Fmw6k%3D
A French café with a separate combining accent

Input

café

Expected answer

Y2FmZcyB
Chinese text in a UTF-8 request body

Input

你好,世界

Expected answer

5L2g5aW977yM5LiW55WM
A literal plus and space inside a URL parameter

Input

release notes+A/B?

Expected answer

cmVsZWFzZSBub3RlcytBL0I%2F

How the result is produced

  1. Base64 Encoder
  2. URL Encoder

Conventions and limitations

Percent-escaped standard Base64 is different from the Base64url alphabet. Confirm which representation the receiving protocol requires.

Related tools

Browse data format tools