Encode String

The Base64 Encode endpoint allows you to encode a given string into Base64 format.

Basic Information

  • URL: https://api.erensko.xyz/v1/base64/encode

  • Method: POST

  • Description: This endpoint accepts a string as input in the request body and returns its Base64-encoded representation.

URL Parameter

Key
Value

image

A boolean, representing if the value provided in the request body is a formatted image.

Body

Key
Value

string

The string you would like to encode into Base64.

Headers

Key
Value

Authorization

Your own personal API key, create one by clicking here. This is required.

Request Example

POST https://api.erensko.xyz/v1/base64/encode

{
  "string": "Hello, world!"
}

Response Example

{
  "base64Encoded": "RXJlbmtzayBpcyBDb29s",
  "originalString": "Erensko is Cool"
}

Last updated