Base-64 to PEM converter

Client-side (javascript, no data is sent to server) base64 to PEM ("Privacy-enhanced Electronic Mail") format converter. This basically splits base64 to multiple lines, 64 characters per line and optionally adds PEM header/footer.

Base64 source (single line or multiple lines):

Header / footer:

Cleaned base64:

Output: