TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Base64-encode UTF-8 text

GEThttps://api.testingapis.com/api/utils/base64/encodeSign in to see this endpoint's URL

Parameters 2

NameTypeDescription
textquery · stringText to encode. Default empty. Default: "".
urlSafequery · booleanUse the URL-safe alphabet (- and _) without padding. Default false. Default: false.

Responses

200
Success.

Example

Request
curl -X GET "https://api.testingapis.com/api/utils/base64/encode?text=hello%20world" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"input": "hello world", "encoded": "aGVsbG8gd29ybGQ=", "urlSafe": false}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.