VulCode

Base64, JWT and hash

Encode and decode Base64 and URLs, split a JWT and get MD5, SHA-256 or SRI from text or a file.

For developers tools
Category
For developers
Price
free

Starting the tool...

Base64, URL and JWT: how to use it in three steps

The tool as a schematic with this page's example. Each step's number stands where you take it: in the fields, at the result or outside the tool.

Base64, URL and JWT
What you enter
VulCode
  1. Choose Base64, URL or JWT.

  2. Paste the text to encode or decode.

What you get
VnVsQ29kZQ==
  1. Copy the result or read the JWT parts.

Seven strings through Base64 both ways

Base64 writes every three bytes as four characters and fills missing bytes with = signs. Text goes through UTF-8 first, which is why Polish letters give a longer result. When decoding, the tool adds missing padding itself.

InputExpectedWhat the tool returnsResult
Inputencode: VulCodethe example from the tool's description
ExpectedVnVsQ29kZQ==
What the tool returnsVnVsQ29kZQ==
As expected
Inputencode: fone byte, two padding signs
ExpectedZg==
What the tool returnsZg==
As expected
Inputencode: fotwo bytes, one padding sign
ExpectedZm8=
What the tool returnsZm8=
As expected
Inputencode: foobarsix bytes, no padding
ExpectedZm9vYmFy
What the tool returnsZm9vYmFy
As expected
Inputencode: zażółćPolish letters, two UTF-8 bytes each
ExpectedemHFvMOzxYLEhw==
What the tool returnsemHFvMOzxYLEhw==
As expected
Inputdecode: emHFvMOzxYLEhwwithout padding, Polish letters
Expectedzażółć
What the tool returnszażółć
As expected
Inputdecode: Pz8_the URL form: _ instead of /
Expected???
What the tool returns???
As expected

7 of 7 cases as expected

Questions