Encode a simple word
Input
Hello
Output
SGVsbG8=
A basic text string becomes a Base64-encoded value.
Developer Tools
Review practical Base64 Encoder examples so you can understand expected input, output, and common patterns faster.
Use this free Base64 Encoder to convert plain text into Base64 instantly. It is useful when working with API payloads, authentication headers, test strings, encoded data transfer, JSON fields, and developer debugging tasks. Paste readable text and get a Base64-encoded result that is easy to copy into scripts, requests, configs, or tools that expect encoded input.
Example pages are especially useful for developer tools because they show what good input looks like, what kind of output to expect, and how the tool behaves in common scenarios.
Input
Hello
Output
SGVsbG8=
A basic text string becomes a Base64-encoded value.
Input
hello world
Output
aGVsbG8gd29ybGQ=
Spaces and regular text characters are preserved through encoding.
Input
{"name":"John","role":"admin"} Output
eyJuYW1lIjoiSm9obiIsInJvbGUiOiJhZG1pbiJ9
Useful when you need to place JSON text into an encoded field or test payload.
Input
user:password123
Output
dXNlcjpwYXNzd29yZDEyMw==
Helpful for understanding how raw credential pairs look before being used in Basic Auth scenarios.
Input
https://example.com?a=1&b=2
Output
aHR0cHM6Ly9leGFtcGxlLmNvbT9hPTEmYj0y
Useful when encoding raw URL text as data, not for normal URL escaping.
Input
line one line two
Output
bGluZSBvbmUKbGluZSB0d28=
Line breaks are preserved in the encoded output.
Input
Привет
Output
0J/RgNC40LLQtdGC
Useful when checking how non-Latin text is converted to Base64.
Input
{"event":"payment.succeeded","amount":4999} Output
eyJldmVudCI6InBheW1lbnQuc3VjY2VlZGVkIiwiYW1vdW50Ijo0OTk5fQ==
Helpful for test fixtures, encoded request bodies, and integration debugging.
Fix: Use URL Encoder for query strings and URLs, and Base64 Encoder only when a system expects Base64 data.
Fix: Remember that Base64 is only encoding, not protection or secrecy.
Fix: Check the input first and decode it before re-encoding if needed.
Fix: Clean the input text before encoding if exact output matters.
Fix: Use the Base64 Decoder page for standard Base64 values and Base64 URL tools for URL-safe variants.
After reviewing these examples, run the live tool with your own input. If your task involves a follow-up step, the related page can help you move to the next tool in the workflow.
Open the main Base64 Encoder page and test your own real input.