How to extract Base64 from a data URL
Two data URLs can carry the same text using entirely different syntax. Use the comma and the base64 marker to identify what to decode.
Read the header up to the first comma
The header carries the media type and any parameters. A final ;base64 marker tells you to Base64-decode the part after the comma. A charset parameter tells you how to read the resulting bytes as text. It makes no change to the Base64 alphabet.
Decode one Korean character two ways
Copy 64iI from the first line into the UTF-8 text decoder to get ๋. In the second line, the three percent escapes stand for the bytes EB 88 88. Percent-decode those bytes and read them as UTF-8 to get the same character.
data:text/plain;charset=utf-8;base64,64iI
data:text/plain;charset=utf-8,%EB%88%88Send the representation the receiver expects
For a PNG data URL, Decodex file decoding accepts the entire URL in a text file. For an API field that requires raw Base64, send only the part after the first comma. The image/png label comes from the producer. Check the restored file if its contents matter.