Text Tools
- Add Prefix or Suffix
- Remove Line Breaks & Spaces
- Flip & Reverse Text
- String Builder
- Encode HTML
- Decode HTML
- Encode Base64
- Decode Base64
- Encode URL
- Decode URL
- String to Hex
- Hex to String
- String to Binary
- Binary to String
- Case Converter
- Remove Accents
- Remove Duplicate Lines
- Remove Empty Lines
- Remove Lines Containing
- Sort Lines
- Find & Replace
- Remove Punctuation
- Remove Duplicate Words
- Join Text
- Repeat Text
- Pick Random Line
- Add Line Breaks
- Text to Morse
- Morse to Text
- Extract Text from HTML
- Split Text
- Vertical Align Text
- Extract Regex Matches
- Center Text
- Right Align Text
- Left/Right Text Rotate
- Check Palindrome
- Convert Spaces to Tabs
- Truncate Text
- Text to Image
- Text to PDF
Input Text
Output Text
String Builder Tool
How to build string variable from plain text
- Enter the text in Input textarea.
- Click on Show Output button.
Uses
- convert text to multiline string for programming languages like javascript.
- concatenate HTML
- json multiline strings
Example
Suppose entered text is:
<div class="className">
<h3>Hello World</h3>
<p class="paragarph">Hello</p>
</div>
String converted would be:
' <div class="className"> ' +
' <h3>Hello World</h3> ' +
' <p class="paragarph">Hello</p> ' +
' </div> ' ;