Encode
Encode and decode base64, URL escaping and JSON string escaping, in both directions.
Runs in your browser — nothing you type here is sent anywhere.
Input
Output
Output appears here.The everyday encodings, in one place, with the distinctions that matter kept clear: base64 against base64url, encoding a whole URL against encoding a single component.
Paste anything and convert either way. Invalid input is reported rather than silently producing nonsense, which is the usual failure mode when a base64 string has been truncated.
What people open it for
- Decoding a base64 value from a header or config
- Escaping a string safely for use in a query parameter
- Turning text into a valid JSON string literal
In the terminal
b64 encode hello
Every utility is also a command in the desktop's shell.