{"id":64,"date":"2026-10-11T09:20:00","date_gmt":"2026-10-11T09:20:00","guid":{"rendered":"https:\/\/www.masters-tool.com\/blog\/?p=64"},"modified":"2026-10-08T03:04:42","modified_gmt":"2026-10-08T03:04:42","slug":"fixing-a-broken-paste-into-an-online-tool","status":"publish","type":"post","link":"https:\/\/www.masters-tool.com\/blog\/fixing-a-broken-paste-into-an-online-tool\/","title":{"rendered":"Fixing a Broken Paste into an Online Tool"},"content":{"rendered":"<p><strong>TL;DR:<\/strong> When a paste into a web tool comes out garbled, suspect hidden characters, the wrong source view, or a box that split the text. Paste into a plain-text scratch area first, look at the ends and the line breaks, then paste once into the tool.<\/p>\n<h2>The tool received what you pasted, not what you saw<\/h2>\n<p>Rich editors show you a cleaned view. The clipboard often holds a second version: HTML markup, soft hyphens, non-breaking spaces, curly quotes, or a byte-order mark. A converter, a formatter, or a calculator field then behaves as if your input were nonsense. The page is often right. The clipboard was carrying more than the sentence you highlighted.<\/p>\n<p>On Masters Tool, encoders, code formatters, and numeric fields fail this way in different costumes. An encoder will faithfully encode the hidden characters, so the output looks \u201ctoo long.\u201d A formatter will throw a syntax error on a line that looks fine. A numeric field will ignore the paste or keep only the digits before the first strange character. The fix starts by seeing the characters, not by switching tools immediately.<\/p>\n<h2>A plain-text airlock<\/h2>\n<p>Paste first into a plain text note or an editor that can show invisible characters. Look at the start. A few junk bytes there will shift a script\u2019s first line or prepend garbage to a Base64 string that must stay intact. Look at the end. A trailing line break may be fine for code and fatal for a single-line token you intended to paste into a header. Look at line endings if the text came from another operating system. The words can be correct while the breaks are doubled, which makes a formatter \u201cwrap\u201d a file you thought was already short.<\/p>\n<p>If the plain-text version already looks wrong, do not paste it onward. Go back to the source and copy again from a different view. Copying from a rendered web page grabs the visible text. Copying from \u201cview source\u201d grabs entities and tags. Copying from a PDF grabs column breaks. Copying from a chat app may turn a hyphen into a line break. Choose the view that matches what the tool asked for, then copy that view only.<\/p>\n<h2>Numbers and code break differently<\/h2>\n<p>Numeric fields reject units and grouping marks. A paste of \u201c1,250 cm\u201d into a centimeters box can become 1, or 1250, or an error, depending on the parser. Strip the unit and the thousands separator in the airlock. Leave a single decimal mark that matches the page. Scientific notation pasted from a word processor may have gained a space or a superscript that is no longer the letter e. Retype the exponent if the airlock shows anything other than a plain e or the page\u2019s expected form.<\/p>\n<p>Code formatters fail on smart quotes around strings, on an ellipsis character where three dots belonged, and on a comment marker that was turned into a bullet. Replace those in the airlock with straight quotes and ordinary punctuation. Then paste. If the formatter still fails, the problem is the code, and you can debug it without wondering whether the clipboard participated.<\/p>\n<h2>The box itself can split the paste<\/h2>\n<ul>\n<li><strong>A single-line input<\/strong> may keep only the first line and discard the rest without an error.<\/li>\n<li><strong>A maxlength<\/strong> may truncate a hash or a Base64 blob. Compare lengths before and after.<\/li>\n<li><strong>A browser extension<\/strong> that \u201ccleans\u201d text can rewrite the paste after you checked the airlock. Disable it for the page if lengths disagree.<\/li>\n<li><strong>Autocomplete<\/strong> can append a previous entry to a partial paste. Clear the field, then paste, then read the start and the end.<\/li>\n<li><strong>A lost focus<\/strong> mid-paste, common when a password prompt appears, leaves a partial value. If a dialog interrupted you, clear and paste again.<\/li>\n<\/ul>\n<p>Length is the cheap test. Count characters in the airlock and, if the page shows a count, compare. A Base64 string whose length is not what you copied is not \u201cclose enough.\u201d It will not decode.<\/p>\n<h2>When the output, not the input, looks broken<\/h2>\n<p>Sometimes the paste was clean and the output looks wrong because you decoded it with a different assumption. HTML entities displayed as raw text mean you are looking at source in a place that expected rendered HTML, or the reverse. A Base64 result that begins with a data-URL prefix will not decode in a decoder that expected bare Base64. Read the tool\u2019s instruction line for that prefix. Strip or add it on purpose. Do not run the output through a second random encoder to \u201crepair\u201d the look of it.<\/p>\n<p>If the page offers an example button or sample, run the sample. If the sample works and your text does not, the difference is in your clipboard, and the airlock will show it. If the sample fails too, stop using that page for the job until you understand the failure. Your paste is not the variable in that test.<\/p>\n<h2>A repeatable repair<\/h2>\n<p>Airlock, inspect the ends, strip what the field cannot accept, paste once, compare length, then interpret the output using the page\u2019s own instructions. That sequence fixes the large majority of \u201cbroken paste\u201d reports without a new website.<\/p>\n<p>Open the converter or formatter from the <a href=\"https:\/\/www.masters-tool.com\/\">Masters Tool homepage<\/a> only after the airlock version looks like what the instruction line asked for. The page cannot clean a clipboard it never gets to see honestly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hidden characters and truncated fields cause most garbled pastes. Inspect a plain-text copy, then compare length.<\/p>\n","protected":false},"author":1,"featured_media":46,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-troubleshooting","entry","has-media"],"_links":{"self":[{"href":"https:\/\/www.masters-tool.com\/blog\/wp-json\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.masters-tool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.masters-tool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.masters-tool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.masters-tool.com\/blog\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":1,"href":"https:\/\/www.masters-tool.com\/blog\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":65,"href":"https:\/\/www.masters-tool.com\/blog\/wp-json\/wp\/v2\/posts\/64\/revisions\/65"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.masters-tool.com\/blog\/wp-json\/wp\/v2\/media\/46"}],"wp:attachment":[{"href":"https:\/\/www.masters-tool.com\/blog\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.masters-tool.com\/blog\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.masters-tool.com\/blog\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}