Skip to content

Base64


Converts an Image to Base64


POST /api/tools/image-to-base64
Terminal window
https://api.cookie-api.com/api/tools/image-to-base64


{
"url": "URL from the Image that should be encode to Base64",
}

curl --location 'http://api.cookie-api.com/api/tools/image-to-base64' \
--header 'Authorization: API_Key' \
--data '{
"url": "https://upload.wikimedia.org/wikipedia/commons/7/78/Image.jpg"
}'

Responses
{
"base64": "string",
"success": true
}



Convert Base64 to an Image

Converts Base64 to an Image

POST /api/tools/base64-to-image
Terminal window
https://api.cookie-api.com/api/tools/base64-to-image


{
"base64": "Base64 that should be Converted to an Image",
}

curl --location 'https://api.cookie-api.com/api/tools/base64-to-image' \
--header 'Authorization: API_Key' \
--data '{
"base64": "string"
}'

Responses
{
"success": true,
"url": "https://images.cookie-api.com/images/b9ca9929-4f14-4772-8eb7-cd513fa2ff1b.jpeg"
}