title: System.FormatException: 'Invalid length for a Base-64 char array or string.'
body: <p>I'm beating my head against a wall here, with this simple code that just doesn't work:</p>
  
  <pre><code>string middle = "eyJzdWIiOiJtYXR0d2ViZXIiLCJqdGkiOiJlMWVmNjc5Mi02YTBjLTQ4YWUtYmQzNi0wZDlmMTVlMDFiY2UiLCJpYXQiOjE0OTMwOTI0OTQsIm5iZiI6MTQ5MzA5MjQ5NCwiZXhwIjoxNDkzMjY1Mjk0LCJpc3MiOiJFQ29tbVdlYkFQSTIiLCJhdWQiOiJFQ29tbVdlYkNsaWVudDIifQ"
  
  byte[] newBytes = Convert.FromBase64String(middle);
  middle = Encoding.UTF8.GetString(newBytes);
  </code></pre>
  
  <p>It's that simple! And yet I get the error in the Title.</p>
  
  <p>Also, I ran this on <a href="https://www.base64decode.org/" rel="noreferrer">https://www.base64decode.org/</a> and it decodes perfectly. </p>