Wrap

Line Wrap Tool

Paste a long Base64 string and wrap it to fixed-width lines. Choose the MIME (76), PEM (64), or a custom width, then copy or download the result.

Input

Local
Line width

Wrapped output

About this tool

About Line Wrap Tool

The Line Wrap Tool wraps a long Base64 string to fixed-width lines, with MIME (76), PEM (64), or custom widths. It is for developers formatting Base64 for standards that require wrapped lines.

Some formats, like PEM and MIME, expect Base64 wrapped at a set width. Wrapping it locally produces compliant output instantly and privately.

How to use

Step by step

  1. Paste a long, single-line Base64 string.
  2. Choose a line width: MIME (76), PEM (64), or custom.
  3. The string is wrapped to that width.
  4. Copy the wrapped result.
Key features

What it offers

  • MIME, PEM, and custom line widths
  • Wraps long Base64 cleanly
  • Instant output
  • Runs locally — Line Wrap
Common use cases

Where it helps

  • Formatting Base64 for a PEM certificate or key
  • Wrapping data for a MIME-encoded email part
  • Meeting a format that requires fixed-width lines
  • Making a long string easier to read
Best practices

Tips for best results

  • Use 64 for PEM and 76 for MIME, matching each standard exactly.
  • Unwrap the string again if a system expects a single continuous line.
  • Avoid adding trailing whitespace, which can break strict parsers.
Common mistakes to avoid

Pitfalls to watch for

  • Wrapping to the wrong width for the target standard, such as using 76 where PEM needs 64.
  • Leaving the string wrapped where a system expects one continuous line.
  • Introducing trailing spaces that some parsers reject.
Benefits

Why people use it

Standard widths

MIME and PEM presets built in.

Custom option

Wrap to any width you need.

Compliant output

Matches formats that require wrapping.

Private

Wrapped on your device.

FAQ

Common questions

Standards like MIME and PEM require fixed line lengths (76 and 64 characters). Wrapping makes long payloads readable and standards-compliant.
MIME (RFC 2045) wraps at 76 characters; PEM (used in certificates and keys) wraps at 64. Both add a line break after each chunk.
No. Wrapping only inserts line breaks; the Base64 content itself is unchanged and decodes identically once unwrapped.
No. The transformation runs entirely in your browser.
Private by design

This runs entirely in your browser

No file or text you enter here is uploaded. Encoding and decoding happen on your device using native browser APIs — close the tab and nothing remains on a server.

Install Toolisco Add it to your device for offline, one-tap access.