Text & Code
Base64 Text Encoder / Decoder
Encode text to Base64 and decode Base64 back to text. URL-safe mode available.
Your files stay on your device - processed locally via WebAssembly, never uploaded
🔒 All encoding and decoding happens in your browser. Nothing is sent anywhere.
Embed this tool on your website
Copy this code to add the Base64 Text Encoder / Decoder to your site for free. It runs entirely in your visitors' browsers - no API key, no usage limits.
<iframe src="https://optipix.art/embed/base64-text" width="100%" height="600" style="border:1px solid #e4e4e7;border-radius:8px;" title="Base64 Text Encoder / Decoder by OptiPix" loading="lazy"></iframe> <p style="font-size:12px">Free tool by <a href="https://optipix.art/base64-text">OptiPix Base64 Text Encoder / Decoder</a></p>
❤️ Love this tool? Support our team.
No ads, no tracking, no limits. Tips keep 104 tools free for everyone.
Secure payment via Stripe · No account needed
About Base64 Text Encoder / Decoder
Last updated: May 2026
رمزگذار/رمزگشای متن OptiPix Base64، متن ساده را مستقیماً در مرورگر شما بین کدگذاری Base64 و متن معمولی تبدیل میکند. هر متن UTF-8 را به Base64 کدگذاری کنید، یا رشتههای Base64 را به متن قابل خواندن رمزگشایی کنید. حالت URL-safe Base64 را برای استفاده از - و _ به جای + و / برای سازگاری با URL و نام فایل، فعال کنید. حالت زنده را برای تبدیل بیدرنگ هنگام تایپ فعال کنید. آمار اندازه ورودی/خروجی را که سربار کدگذاری را نشان میدهد، مشاهده کنید. هر فایلی را برای کدگذاری بایتهای آن به یک رشته Base64 رها کنید، یا یک رشته Base64 را برای رمزگشایی و دانلود به صورت فایل، جایگذاری کنید. این ابزار متن و فایلهای دلخواه را مدیریت میکند - برای Base64 مخصوص تصویر با پیشنمایش و خروجی CSS، به ابزار Image to Base64 مراجعه کنید. تمام پردازشها به صورت محلی در مرورگر شما انجام میشود.
How It Works
این ابزار از توابع btoa() و atob() جاوا اسکریپت برای متن در محدوده ASCII استفاده میکند. برای پشتیبانی کامل UTF-8، ابتدا متن را با استفاده از TextEncoder کدگذاری میکند، سپس آرایه بایت را به یک رشته Base64 تبدیل میکند. حالت URL-safe، + را با - و / را با _ در خروجی جایگزین میکند.
Use Cases
- •کلیدهای API و توکنها را برای فایلهای پیکربندی کدگذاری کنید
- •دادههای کدگذاری شده Base64 را از APIها و JWTها رمزگشایی کنید
- •فایلها را برای جاسازی در Payloadهای JSON به Base64 تبدیل کنید
- •دادهها را برای کدگذاری MIME ایمیل آماده کنید
- •رشتههای کدگذاری شده Base64 را در برنامههای وب اشکالزدایی کنید
You Might Also Like
If you find Base64 Text Encoder / Decoder useful, check out these related tools: URL Encoder / Decoder, Text to Binary / Hex / Octal, and Hash Generator. All tools run entirely in your browser with no uploads or signups required.
Explore more: Browse all tools · Step-by-step guides · Tips & tutorials · Compare tools
Frequently Asked Questions
کدگذاری Base64 چیست؟
Base64 امن برای URL چیست؟
آیا میتوانم فایلها را کدگذاری کنم، نه فقط متن؟
این ابزار چه تفاوتی با ابزار Image to Base64 دارد؟
آیا دادههای من به هیچ سروری ارسال میشود؟
Related Tools
URL Encoder / Decoder
Encode and decode URLs with percent-encoding. Parse URLs into components.
Text to Binary / Hex / Octal
Convert text to binary, hexadecimal, octal, and decimal - and back.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and 10+ more formats.