JavaScript base64/base64url encoder/decoder Source Code

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:

See also JavaScript source code for CRC-32, Luhn.

Source Code


Calculation and conversion tools:

Text Conversions
Unit Conversions
international and imperial
size, perimeter, area, volume...