About this tool
Convert text to and from RFC 9285 Base45 over UTF-8 bytes, entirely in your browser.
Encode turns the text into UTF-8 bytes and writes them using the 45 characters 0-9, A-Z, space and $ % * + - . / :. Decode reverses it. Nothing runs automatically after you edit the input, so click Encode or Decode.
Decoding is strict. It reports an error for characters outside the set (lowercase letters are not accepted), for a leftover single character, for a group whose value is out of range, and for bytes that are not valid UTF-8 text. Spaces are part of the alphabet, so spaces inside the input are data, including spaces at either end. Only line breaks are removed before decoding.
Frequently asked questions
Where is Base45 used?
It encodes binary data into the QR-friendly alphanumeric set, notably for the EU Digital COVID Certificate.
How does the encoding work?
Bytes are taken in pairs and written as three Base45 characters; a lone trailing byte becomes two characters.
Why does decoding say my input is invalid?
Check for lowercase letters or characters outside the set, a string whose length leaves a single character over, and payloads that are not UTF-8 text. Only text can be shown, so binary data may be rejected.
How much longer is the encoded text?
Every two bytes become three characters and a single trailing byte becomes two, so plain ASCII text grows by about half.
More tools