Base64 ແມ່ນກຸ່ມຂອງລະບົບການເຂົ້າລະຫັດ binary-to-text ທີ່ເປັນຕົວແທນຂອງຂໍ້ມູນ binary (ໂດຍສະເພາະ, ລໍາດັບຂອງ 8-bit bytes) ໃນລໍາດັບຂອງ 24 bits ທີ່ສາມາດສະແດງໄດ້ສີ່ຕົວເລກ Base64 6-bit.
ທົ່ວໄປກັບທຸກລະບົບການເຂົ້າລະຫັດແບບສອງຫາຕົວໜັງສື, Base64 ຖືກອອກແບບມາເພື່ອເກັບຂໍ້ມູນທີ່ເກັບໄວ້ໃນຮູບແບບຄູ່ຜ່ານຊ່ອງທາງທີ່ຮອງຮັບເນື້ອໃນຂໍ້ຄວາມເທົ່ານັ້ນ.
Base64 ແມ່ນມີຢູ່ທົ່ວໄປໂດຍສະເພາະໃນ World Wide Web ທີ່ຫນຶ່ງໃນການນໍາໃຊ້ຂອງມັນແມ່ນຄວາມສາມາດໃນການຝັງໄຟລ໌ຮູບພາບຫຼືຊັບສິນຄູ່ອື່ນໆພາຍໃນຊັບສິນຂໍ້ຄວາມເຊັ່ນໄຟລ໌ HTML ແລະ CSS.
ອ່ານເພີ່ມເຕີມໄດ້ທີ່ wiki
You may open the browser and load the URL with the parameter like this:
https://tooly.win/text-base64-decode-encode.html?input=your plain text you would like to encode
If you would like to encode content of the external URL, you may open the browser and load URL like this:
https://tooly.win/text-base64-decode-encode.html?input=URL&content=fetch
More parameters for encoding your data:
safe=true
ຖ້າທ່ານຕ້ອງການໃຊ້ຮູບແບບ Base64URL ສໍາລັບການເຂົ້າລະຫັດYou may open the browser and load the URL with the parameter like this:
https://tooly.win/text-base64-decode-encode.html?code=your encoded data
If you would like to decode the external URL, you may open the browser and load URL like this:
https://tooly.win/text-base64-decode-encode.html?code=URL
https://tooly.win/api/text-base64-decode-encode/
ຈຸດສິ້ນສຸດ: POST https://tooly.win/api/text-base64-decode-encode/
input
string
URL / your plain text you would like to encode
content
string
fetch
if your input is an URL and you would like to encode its content. Without this parameter, our tool would process your URL as text
safe
boolean
true
ຖ້າທ່ານຕ້ອງການໃຊ້ຮູບແບບ Base64URL ສໍາລັບການເຂົ້າລະຫັດ
status
boolean
true
ຖ້າການຮ້ອງຂໍຂອງເຈົ້າບໍ່ເປັນຫຍັງ
result
string
ຜົນໄດ້ຮັບຂອງການຮ້ອງຂໍຂອງທ່ານຖ້າຫາກວ່າບໍ່ມີຄວາມຜິດພາດ
message
string
ຂໍ້ຄວາມຜິດພາດຖ້າຫາກວ່າມີຄວາມຜິດພາດໃດຫນຶ່ງ
curl
https://tooly.win/api/text-base64-decode-encode/
-X POST -H 'Content-Type: application/json'
--data '{"input":"your plain text you would like to encode"}'
{
"status": true,
"result": "eW91ciBwbGFpbiB0ZXh0IHlvdSB3b3VsZCBsaWtlIHRvIGVuY29kZQ==",
"messsage": "",
}
ຈຸດສິ້ນສຸດ: POST https://tooly.win/api/text-base64-decode-encode/
code
string
URL / your encoded data
status
boolean
true
ຖ້າການຮ້ອງຂໍຂອງເຈົ້າບໍ່ເປັນຫຍັງ
result
string
ຜົນໄດ້ຮັບຂອງການຮ້ອງຂໍຂອງທ່ານຖ້າຫາກວ່າບໍ່ມີຄວາມຜິດພາດ
message
string
ຂໍ້ຄວາມຜິດພາດຖ້າຫາກວ່າມີຄວາມຜິດພາດໃດຫນຶ່ງ
curl
https://tooly.win/api/text-base64-decode-encode/
-X POST -H 'Content-Type: application/json'
--data '{"code":"eW91ciBlbmNvZGVkIGRhdGE="}'
{
"status": true,
"result": "your encoded data",
"messsage": "",
}
ພາສາ | ເຂົ້າລະຫັດ | ຖອດລະຫັດ | ຕ້ອງການ |
---|---|---|---|
Python | string = "Tooly.win" | base64.b64decode(string) | import base64 |
Java | Base64.encodeBase64(string) | Base64.decodeBase64(string) | import org.apache.commons.codec.binary.Base64 |
C# | System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(plainTextBytes)) | System.Text.Encoding.UTF8.GetString(System.Convert.FromBase64String(base64EncodedData)) | |
Visual Basic (VB) | System.Convert.ToBase64String(data) | System.Convert.FromBase64String(base64encoded) | |
JavaScript | btoa(string) | atob(string) | |
SQL | SELECT TO_BASE64('string') | SELECT FROM_BASE64('string') | use mysql |
PHP | base64_encode($string) | base64_decode($string) | |
Swift | string.data(using: .utf8)?.base64EncodedString() | String(data: string, encoding: .utf8) | |
Golang (Go) | b64.StdEncoding.EncodeToString([]byte('string')) | b64.StdEncoding.DecodeString('string') | package main import b64 "encoding/base64" |
R | base64encode(string) | base64decode(string) | |
Ruby | Base64.encode64(string) | Base64.decode64(string) | require "base64" |
Rust | general_purpose::STANDARD_NO_PAD.encode(string) | general_purpose::STANDARD_NO_PAD.decode(string) | use base64::{Engine as _, engine::general_purpose}; |
Perl | encode_base64($string) | decode_base64($string) | use MIME::Base64 |
Lua | base64.encode('string') | base64.decode('string') | local base64 = require'base64' |
Kotlin | Base64.getEncoder().encodeToString('string'.toByteArray()) | String(Base64.getDecoder().decode('string')) | |
Bash | echo 'string' | base64 | echo 'string' | base64 –decode | |
PowerShell | [Convert]::ToBase64String( [System.Text.Encoding]::Unicode.GetBytes($string) ) | [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($string) | |
NodeJS | Buffer.from('string').toString('base64') | Buffer.from('string').toString('ascii') | |
Crystal | Base64.encode('string') | Base64.decode('string') | require "base64" |
Elixir | Base.encode64('string') | Base.decode64('string') | |
Nim | encode('string') | decode('string') | import std/base64 |
Dart & Flutter | base64.encode(utf8.encode('string')) | base64.decode('string') | import 'dart:convert' |
Just tap then “Add to Home Screen”