12
文本 & Base64 解码和编码
Conversion, Converter, Encoder, Decoder, Text

最新任务全部的: 5,644

编码的 一 信息
大约 1 小时前
编码的 一 信息
大约 2 天前
编码的 一 信息
大约 2 天前
解码 一 文本
大约 5 天前
编码的 一 文本
大约 5 天前
解码 一 文本
大约 5 天前
解码 一 信息
不到 1 周前
编码的 一 文本
不到 1 周前
解码 一 文本
不到 1 周前
解码 一 文本
不到 1 周前
解码 一 文本
不到 1 周前
解码 一 文本
不到 1 周前
解码 一 文本
不到 1 周前
解码 一 文本
不到 1 周前

浏览器快捷方式

将下面的快捷方式拖放到浏览器书签栏中,单击即可使用此工具.
选择文本
单击您的快捷方式进行编码/解码
文本 & Base64 解码和编码
将任何基于文本的输入转换为 base64 格式,反之亦然:链接、视频或图像,甚至远程 URL 或您自己的可上传文件。 然后通过可共享链接直接将结果以他们自己的语言提供给您的朋友,或下载并存储在您的私人场所。
18-01-2023
添加日期
1y 2m 10d
服务时间
版本

Base64 是一组二进制到文本的编码方案,它以 24 位序列表示二进制数据(更具体地说,是 8 位字节序列),可以用四个 6 位 Base64 数字表示。

Base64 对于所有二进制到文本的编码方案都是通用的,旨在跨通道传输以二进制格式存储的数据,这些通道仅可靠地支持文本内容。

Base64 在万维网上特别流行,其用途之一是能够将图像文件或其他二进制资产嵌入文本资产(如 HTML 和 CSS 文件)中。

阅读更多 wiki

警告

Because of browser limitations, your data length could be not over 1950 characters if you would like to use this method directly. Otherwise, please consider using our API.

To encode the text

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:



To decode the encoded text

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

警告

此工具目前仅接受通过 API 的 POST 方法,如果您想使用 GET 方法,请考虑使用 直接使用.

端点

https://tooly.win/api/text-base64-decode-encode/

To encode the text

端点: 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": "",
}

To decode the encoded text

端点: 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": "",
}
语言编码解码要求
Pythonstring = "Tooly.win"
string_bytes = string.encode("ascii")
base64_bytes = base64.b64encode(string_bytes)
base64.b64decode(string)import base64
JavaBase64.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)
JavaScriptbtoa(string)atob(string)
SQLSELECT TO_BASE64('string')SELECT FROM_BASE64('string')use mysql
PHPbase64_encode($string)base64_decode($string)
Swiftstring.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"
Rbase64encode(string)base64decode(string)
RubyBase64.encode64(string)Base64.decode64(string)require "base64"
Rustgeneral_purpose::STANDARD_NO_PAD.encode(string)general_purpose::STANDARD_NO_PAD.decode(string)use base64::{Engine as _, engine::general_purpose};
Perlencode_base64($string)decode_base64($string)use MIME::Base64
Luabase64.encode('string')base64.decode('string')local base64 = require'base64'
KotlinBase64.getEncoder().encodeToString('string'.toByteArray())String(Base64.getDecoder().decode('string'))
Bashecho 'string' | base64echo 'string' | base64 –decode
PowerShell[Convert]::ToBase64String( [System.Text.Encoding]::Unicode.GetBytes($string) )[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($string)
NodeJSBuffer.from('string').toString('base64')Buffer.from('string').toString('ascii')
CrystalBase64.encode('string')Base64.decode('string')require "base64"
ElixirBase.encode64('string')Base.decode64('string')
Nimencode('string')decode('string')import std/base64
Dart & Flutterbase64.encode(utf8.encode('string'))base64.decode('string')import 'dart:convert'
Install the web app 的 “文本 & Base64 解码和编码” on your home screen for quicker and easier access. Not Now

Just tap then “Add to Home Screen”

Share