Skip to content

Encode / Decode

Base64, hex, URL, and HTML encoding and decoding.

7 modules

ModuleDescription
Dekode Base64Dekode teks yang dikodekan Base64
Dekode HexDekode heksadesimal ke teks
Dekode URLDekode teks yang dikodekan URL
Encode Base64Encode teks ke Base64
Encode HexEncode teks ke heksadesimal
Encode HTMLEncode teks ke entitas HTML
Encode URLEncode URL teks (percent encoding)

Modules

Dekode Base64

decode.base64

Dekode teks yang dikodekan Base64

Parameters:

NameTypeRequiredDefaultDescription
texttextYes-Teks yang dikodekan Base64 untuk didekode
encodingstringNoutf-8Teks yang dikodekan Base64 untuk didekode
url_safebooleanNoFalsePengkodean karakter untuk keluaran

Output:

FieldTypeDescription
resultstringInput adalah Base64 aman-URL
originalstringString yang didekode
validbooleanString yang didekode

Dekode Hex

decode.hex

Dekode heksadesimal ke teks

Parameters:

NameTypeRequiredDefaultDescription
texttextYes-Teks heksadesimal untuk didekode
encodingstringNoutf-8Teks heksadesimal untuk didekode

Output:

FieldTypeDescription
resultstringPengkodean karakter untuk keluaran
originalstringString yang didekode
validbooleanString yang didekode

Dekode URL

decode.url

Dekode teks yang dikodekan URL

Parameters:

NameTypeRequiredDefaultDescription
texttextYes-Teks yang dikodekan URL untuk didekode
plus_spacesbooleanNoFalseTeks yang dikodekan URL untuk didekode

Output:

FieldTypeDescription
resultstringPerlakukan + sebagai spasi (dekode formulir)
originalstringString yang didekode

Encode Base64

encode.base64

Encode teks ke Base64

Parameters:

NameTypeRequiredDefaultDescription
texttextYes-Teks untuk diencode
encodingstringNoutf-8Teks untuk diencode
url_safebooleanNoFalseEncoding karakter

Output:

FieldTypeDescription
resultstringGunakan encoding Base64 yang aman untuk URL
originalstringString yang diencode Base64
lengthnumberString yang diencode Base64

Encode Hex

encode.hex

Encode teks ke heksadesimal

Parameters:

NameTypeRequiredDefaultDescription
texttextYes-Teks untuk diencode ke hex
encodingstringNoutf-8Teks untuk diencode ke hex
uppercasebooleanNoFalseEncoding karakter
separatorstringNo-Gunakan huruf hex kapital

Output:

FieldTypeDescription
resultstringPemisah antara byte hex
originalstringString yang diencode Hex
byte_countnumberString yang diencode Hex

Encode HTML

encode.html

Encode teks ke entitas HTML

Parameters:

NameTypeRequiredDefaultDescription
texttextYes-Teks untuk diencode sebagai entitas HTML
quotebooleanNoTrueTeks untuk diencode sebagai entitas HTML

Output:

FieldTypeDescription
resultstringJuga encode karakter kutip
originalstringString yang diencode HTML

Encode URL

encode.url

Encode URL teks (percent encoding)

Parameters:

NameTypeRequiredDefaultDescription
texttextYes-Teks untuk diencode URL
plus_spacesbooleanNoFalseTeks untuk diencode URL
safestringNo-Gunakan + sebagai pengganti %20 untuk spasi (form encoding)

Output:

FieldTypeDescription
resultstringKarakter yang tidak boleh diencode
originalstringString yang diencode URL

Released under the Apache 2.0 License.