---
title: "Base64 Encoder/Decoder | iamthana"
description: "เข้ารหัสและถอดรหัส Base64 และ Base64URL กับข้อความ UTF-8 รวมถึงภาษาไทย"
canonical_url: "https://iamthana.com/tools/base64-codec"
meta:
  "og:description": "เข้ารหัสและถอดรหัส Base64 และ Base64URL กับข้อความ UTF-8 รวมถึงภาษาไทย"
  "og:image": "https://iamthana.com/_og/s/o_75ba01397d705186.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Base64 Encoder/Decoder | iamthana"
  "twitter:image": "https://iamthana.com/_og/s/o_75ba01397d705186.png"
---

> Index of every page on this site: [llms.txt](https://iamthana.com/llms.txt)

# **Base64 Encoder/Decoder**

เข้ารหัสและถอดรหัส Base64 และ Base64URL กับข้อความ UTF-8 รวมถึงภาษาไทย

**ข้อความ**0 ไบต์

ใช้ตัวอักษร URL-safe (- และ \_ แทน + และ /, ไม่มี =)

พิมพ์หรือวางข้อความในช่องรับข้อมูล ผลลัพธ์จะขึ้นที่นี่ทันที

## **Base64 ใช้ตอนไหน**

Base64 แปลงข้อมูลให้เหลือตัวอักษรธรรมดา 64 ตัว จึงใส่ลงในที่ที่รับได้แค่ข้อความ เช่น data URL, ไฟล์แนบในอีเมล, header Authorization แบบ Basic และส่วนต่าง ๆ ของ JWT ข้อมูลที่แปลงแล้วใหญ่ขึ้นราวหนึ่งในสาม

Base64 เป็นการเปลี่ยนรูปแบบข้อมูล ใครก็ถอดกลับได้ทันทีเพราะไม่มีกุญแจป้องกัน รหัสผ่านและข้อมูลลับจึงต้องเข้ารหัสด้วยวิธีอื่นก่อน

## **Base64 กับ Base64URL**

Base64 มาตรฐานใช้ A-Z, a-z, 0-9 กับ + และ / แล้วเติม = ท้ายข้อความให้ความยาวหารด้วย 4 ลงตัว Base64URL เปลี่ยน + เป็น - และ / เป็น \_ แล้วตัด = ออก เพื่อให้วางใน URL ได้เลย JWT จึงใช้รูปแบบนี้ หน้านี้ถอดรหัสได้ทั้งสองแบบ และเลือกเข้ารหัสเป็น Base64URL ได้

## **เครื่องมืออื่น ๆ**

- [Developer

  3f2b8c1e-9a4d-4e7b-

  8c5a-1d6f0e2b7a94<h3>**UUID Generator**</h3>

  สร้างรหัส UUID เวอร์ชัน 1, 4, 6 และ 7 ครั้งละไม่เกิน 1,000 รายการ เลือกตัวพิมพ์ใหญ่หรือตัดขีดคั่นได้](https://iamthana.com/tools/uuid-generator)
- [Developer<h3>**สร้าง QR Code ฟรี ไม่หมดอายุ (QR Code Generator)**</h3>

  สร้าง QR Code จากลิงก์หรือข้อความ ดาวน์โหลดเป็น PNG หรือ SVG ได้ฟรี รหัสเก็บข้อมูลไว้ในตัวเองจึงไม่หมดอายุ](https://iamthana.com/tools/qr-generator)
- [Developer

  \*/15 9-17 \* \* 1-5

  ทุก 15 นาที 09:00 ถึง 17:45 จันทร์ถึงศุกร์<h3>**Cron Job Generator**</h3>

  สร้างนิพจน์ cron สำหรับตั้งเวลางานอัตโนมัติ ตั้งทีละช่องหรือพิมพ์เอง พร้อมคำอธิบายเป็นภาษาไทยและรอบที่จะรันถัดไป](https://iamthana.com/tools/cron-generator)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://iamthana.com/#website","@type":"WebSite","inLanguage":"th-TH","name":"iamthana","url":"https://iamthana.com/","publisher":{"@id":"https://iamthana.com/#identity"},"workTranslation":[]},{"@id":"https://iamthana.com/tools/base64-codec#webpage","@type":"WebPage","description":"เข้ารหัสและถอดรหัส Base64 และ Base64URL กับข้อความ UTF-8 รวมถึงภาษาไทย","name":"Base64 Encoder/Decoder","url":"https://iamthana.com/tools/base64-codec","breadcrumb":{"@id":"https://iamthana.com/tools/base64-codec#breadcrumb"},"isPartOf":{"@id":"https://iamthana.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://iamthana.com/tools/base64-codec"]}]},{"@id":"https://iamthana.com/#identity","@type":"Person","alternateName":"Thana Tingprasom","name":"iamthana","url":"https://iamthana.com","knowsAbout":["AI","SEO","Development","Homelab","Software Development","Python","Ubuntu","Docker"],"sameAs":["https://github.com/iamthana","https://www.linkedin.com/in/thana-tingprasom/","https://www.facebook.com/kttkook"]},{"@id":"https://iamthana.com/tools/base64-codec#webapplication","@type":"WebApplication","applicationCategory":"UtilityApplication","applicationSubCategory":"Developer","browserRequirements":"Requires JavaScript","description":"เข้ารหัสและถอดรหัส Base64 และ Base64URL กับข้อความ UTF-8 รวมถึงภาษาไทย","inLanguage":"th-TH","isAccessibleForFree":true,"name":"Base64 Encoder/Decoder","operatingSystem":"Any","url":"https://iamthana.com/tools/base64-codec","author":{"@id":"https://iamthana.com/#identity"},"offers":{"@type":"Offer","price":"0","priceCurrency":"THB"}},{"@id":"https://iamthana.com/tools/base64-codec#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://iamthana.com","position":1},{"@type":"ListItem","name":"Tools","item":"https://iamthana.com/tools","position":2},{"@type":"ListItem","name":"Base64 Encoder/Decoder","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://iamthana.com/sitemap.md) for all pages.
