Encode and decode text to/from base64 and base64url, as per RFC-4648. Text is first converted from JavaScript UCS-2 string encoding to UTF-8. This source code is in the public domain. You may use, share, modify it freely, without any conditions or restrictions.
Download source code:
See it in action, try it online now: