Encode text or files using Base64 encoding & download the output, all on the client side
View ToolBase64 encoding is used to transmit binary data in an ASCII format. Typical usage is to embed image data within scripts such as CSS.
Various programming languages allow you to encode binary data (or even text) using built in APIs. For instance, in C# ToBase64String
method of System.Convert
class does this. This method takes a byte array as input. Typically this is some sort of binary data that cannot be transferred over the wire without corruption. However, you can also convert text into byte[] and then encode it using base64. You should question why this is needed because it is not the intended use of Base-64 encoding. In this form, you are just wasting bytes to represent your text data.
Checkout the Programming Languages section below for a list of APIs for other languages. Read more at wikipedia
Value | Char |
---|---|
0 | A |
1 | B |
2 | C |
3 | D |
4 | E |
5 | F |
6 | G |
7 | H |
8 | I |
9 | J |
10 | K |
11 | L |
12 | M |
13 | N |
14 | O |
15 | P |
Value | Char |
---|---|
16 | Q |
17 | R |
18 | S |
19 | T |
20 | U |
21 | V |
22 | W |
23 | X |
24 | Y |
25 | Z |
26 | a |
27 | b |
28 | c |
29 | d |
30 | e |
31 | f |
Value | Char |
---|---|
32 | g |
33 | h |
34 | i |
35 | j |
36 | k |
37 | l |
38 | m |
39 | n |
40 | o |
41 | p |
42 | q |
43 | r |
44 | s |
45 | t |
46 | u |
47 | v |
Value | Char |
---|---|
48 | w |
49 | x |
50 | y |
51 | z |
52 | 0 |
53 | 1 |
54 | 2 |
55 | 3 |
56 | 4 |
57 | 5 |
58 | 6 |
59 | 7 |
60 | 8 |
61 | 9 |
62 | + |
63 | / |
System.Convert.ToBase64String()
System.Convert.FromBase64String()
System.Convert.ToBase64String()
System.Convert.FromBase64String()
java.util.Base64.getEncoder().encode()
java.util.Base64.getDecoder().decode()
org.apache.commons.codec.binary.Base64.encodeBase64()
org.apache.commons.codec.binary.Base64.decodeBase64()
btoa()
atob()
base64.b64encode()
base64.b64decode()
Base64.encode64()
Base64.decode64()
Comments 0