How to use this tool
- Enter text or base64, mode.
- Select Update result to view the result.
- Check the method and assumptions below before using the result.
Input reference and sample values
Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.
| Input | Format and units | Sample |
|---|---|---|
| Text or Base64 | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | Hello |
| Mode | Choose Encode UTF-8 text / Decode to UTF-8 text. | Encode UTF-8 text |
Result for these sample inputs
SGVsbG8=
Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.
The method, explained
UTF-8 text is converted to bytes, then encoded with the standard Base64 alphabet. Decoding reverses the process and requires valid UTF-8 bytes.
The text Hello encodes as SGVsbG8=. Decoding that value returns Hello.
What to keep in mind
This is a text utility, not a binary file converter. URL-safe Base64 is not automatically normalized. Encoding is reversible and is not encryption.
Common questions
Can I encode non-English text?
Yes. UTF-8 represents Unicode text before the bytes are Base64 encoded.
Why can decoding fail?
The input may use invalid Base64 characters or decode to bytes that are not valid UTF-8 text.
Methodology maintained by ClarityKit. How these tools are built and checked.