 <p>Actually there is not any inbuilt function of canvas that can give such functionality like word-wrap css propery.</p> <p>But if you wish then u can implement it manually.</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; &lt;canvas id="myCanvas" width="578" height="200"&gt; &lt;/canvas&gt; &lt;/body&gt; &lt;/html&gt;</code></pre> </div> </div> </p>