Encode or decode your data to/from the Base64 format
Mockoon is a powerful API mocking tool that makes it easy to create and manage mock APIs for prototyping and testing. With an intuitive interface, you can quickly set up mock servers, customize responses, and simulate scenarios in real-time, enhancing team collaboration and speeding up development.
Base64 is a binary-to-text encoding scheme that transforms binary data into a sequence of characters limited to a set of 64 unique ASCII characters. Base64 is designed to transport data stored in binary format (such as images) over systems that are designed to only handle data in a plain-text format. Base64 is also used to encode email attachments.
Base64 encoding works by converting a binary string to a 64-character subset of the ASCII character set. The 64 characters in the subset are common to most encodings and printable. They are comprised of 26 lowercase letters, 26 uppercase letters, 10 numbers, and the "+" and "/" symbols. The "=" symbol is also used as padding at the end of the encoded string.
Example of a Base64 encoded string:SGVsbG8gd29ybGQh
The above-encoded string is decoded to the following binary string:Hello world!