Text to Base64

Quickly encode text to Base64. Supports UTF-8, multi-line input, copy, and download.

Input text
Supports Chinese and emoji, encoded as UTF-8
Input size: 0 B
Base64 output
Copy or download to save
Tip: This is standard Base64 (not URL-safe). If you also need “Base64 URL encoding,” it’s best as a separate toggle.

Encode text, JSON, and strings to Base64

Use this text to Base64 encoder to convert plain text, JSON snippets, configuration values, or short strings into standard UTF-8 Base64. It is useful for API testing, temporary transport, data URLs, and debugging encoded payloads.

How to encode text to Base64
  1. Paste text, JSON, or a short string into the input box.
  2. Click Convert to encode the content as UTF-8 Base64.
  3. Copy the Base64 result or download it as a text file for later use.
Text to Base64 example
Input
Hello ImageBase64
Base64 output
SGVsbG8gSW1hZ2VCYXNlNjQ=
What you can encode
  • Plain text, multi-line notes, and Unicode characters encoded as UTF-8.
  • JSON snippets or small configuration values used in API tests and prototypes.
  • Short strings that need to be embedded in scripts, forms, or request bodies.
How to use the output safely
  • Base64 is encoding, not encryption. Anyone can decode it, so do not treat it as a security boundary.
  • For URLs and tokens, check whether the receiving system expects standard Base64 or URL-safe Base64.
  • For large payloads, prefer normal file upload or structured transport instead of copying huge Base64 strings.

Useful Base64 encoding scenarios

API testing and debugging
Encode sample request values, compare payloads, or verify how a backend expects Base64 strings to be submitted.
Embedding small text payloads
Use Base64 for short strings in forms, scripts, demos, and temporary transport where plain text would be inconvenient.
Checking Unicode behavior
The encoder uses UTF-8, so multilingual text and emoji can be converted consistently before sending to another system.

Frequently asked questions

Does Base64 hide sensitive text?
No. Base64 is reversible encoding. Do not use it to protect passwords, secrets, private keys, or personal data.
Why is the Base64 output longer than my text?
Base64 represents binary data as printable characters and usually adds about one third more size than the original bytes.
Can I convert the Base64 output back?
Yes. Use the Base64 decoder page to restore text or files from Base64 when you need to verify the result.