base64 encoding is used for converting binary data into a text format, commonly used for encoding binary data in text-based formats like JSON.