Encode / Decode

Encodes or decodes text using a variety of algorithms.

GET /convert/encode

Parameters

Parameter
Required
Default
Description

alg

Yes

Encoding algorithm (see list below)

text

Yes

The text to process

mode

No

encode

encode or decode

Additional algorithm-specific parameters can be passed as extra query parameters.

Response

{
  "success": true,
  "alg": "base64",
  "mode": "encode",
  "input": "Hello",
  "result": "SGVsbG8="
}

Algorithms

base64

Standard Base64 encoding.


base32

Base32 encoding using the standard alphabet (A-Z, 2-7).


ascii85

ASCII85 (Base85) encoding.


urlenc

URL encoding (percent-encoding).


codepoints

Converts characters to Unicode code points and back.


baudot

Baudot/ITA2 5-bit telegraph encoding. Outputs binary groups.


case

Transforms text case.

Extra parameter
Default
Options

style

upper

upper, lower, title, sentence

Note: mode is ignored for case — it always transforms in the same direction.


reverse

Reverses the characters in the text.


replace

Find-and-replace within the text.

Extra parameter
Default
Description

find

(empty)

Substring to find

repl

(empty)

Replacement string

Note: mode is ignored for replace.

Last updated

Was this helpful?